PDA


View Full Version : Block With Content


anthroa
11-12-2005, 02:31 AM
I see that there are numerous threads on custom content and templates etc but i am a bit confused about the terminology here and have tried a few things but can't seem to get it to work - so here is my attempt to explain

ok i want to have a block on the index page which describes the site has a few links in it to the galleries forums and where to register - have made a small html page which has all this on it and have attempted to add a page > template > put the code in the box but am starting to get lost on what to put in the various fields

Path to File http://www.domain.com/welcome.html ??
Module Shell Template Options ??
Options ??

this is looking like the wrong option

so add a page>[HTML File] sounds right but again lots of field of stuff that doesn't seem relevant to what i want to do

Module Shell Template Options - not sure about these :confused:
Modules Enabled - looks like info to be inserted in the html :confused:
Usergroups - yup that looks ok can understand
Options - not clear on these
Options again - also not clear
News Options - huh
Welcome Block Options - WTF
it goes on this doesn't look right for what i want

so how do i go about adding a block within the front page with some html i have created so it appears as a block i can move around to suit ?

Brian
11-12-2005, 01:23 PM
If you're just trying to add a new block to your existing CMPS page then you would need to add a new module, not a new page. A new page is just that - a new page. A module is any one of the blocks that can appear on these pages.

Path to File http://www.domain.com/welcome.html ??
Just an FYI incase you're trying to add new pages, that needs to be the path to the file (ex: /home/yoursite/whatever.html)

Module Shell Template Options - not sure about these :confused:
These options only apply if you turn on the 'Use Module Shell Template' option. The adv_portal_module_shell template is "wrapped" around all of the default CMPS modules and allows you to use the same code for the beginning and end of your modules, keeping them all uniform and making it easy to change the look of all of them.

Modules Enabled - looks like info to be inserted in the html :confused:
When adding a page, you can disable/enable any modules you would like on that particular page.

Options - not clear on these
Options again - also not clear
News Options - huh
Welcome Block Options - WTF
You can set different options for each module on any new pages that you create. A good example of this would be if you wanted to have a page that pulled news from a different forum than on your homepage. You simply change the 'News Forum(s)' option there and that will change that setting for just that page.

so how do i go about adding a block within the front page with some html i have created so it appears as a block i can move around to suit ?
You would probably want to add a new template module and add the code from the file you've created in a new template.

anthroa
11-12-2005, 08:47 PM
Thanks Brian - tried it but does some weird stuff - loses formatting so the block doesn't retain the look of the rest of the page see these images

http://www.photography-gallery.com/1.jpg

but should look like this

http://www.photography-gallery.com/2.jpg

so something lost in translation - what do i need to do to the html to carry over the style :confused:

Brian
11-13-2005, 11:06 AM
I'm assuming you added this as a template module, right? If so, I would recommend turning the 'Use Module Shell Template' option on, then make sure the content of the template you're using looks something like this:
<tr>
<td class="$bgclass">

Your content here.

</td>
</tr>

anthroa
11-13-2005, 04:58 PM
snap :D