PDA

View Full Version : Content


MarcinSarasota
01-07-2006, 12:29 PM
Is the middle of the page reserved for just articles or can we add other content? I am trying to figure out the best way to add a page to the middle with information other than articles.

www.realestaterag.com


Marc

mgattereau
02-02-2006, 03:32 AM
Did you get a reply on this?

Boccio Can you please reply to this question.

How to add content in the main Cell the middle one and link it through the category section

boccio
02-02-2006, 12:41 PM
There are basically 4 main templates in the system.

- index.tpl (holds main index page)
- framework.tpl (holds main page for all non-article pages, like author bio page, comments page, sitemap page, etc…)
- category_Main.tpl (holds category pages)
- article_Full.tpl (holds full article page)

So, if you want to add some static content in middle column when viewing some article, edit article_Full.tpl file, and find a section where article is displayed (that would be {ARTICLE_BODY} tag). There you can manipulate any way you want, and add whatever HTML code you want before or after this tag.

How to add content in the main Cell the middle one and link it through the category section
The above is for adding content in main cell. If you want to create some static page, and link it thru category section, you can do it in two ways:

1. Create the page thru the system (as article).
2. Upload your static page via FTP.

Regardless of what choice you make, to link this page thru category section, do the following:
1. Create a category
2. Thru Category management edit this category you just created
3. Use the option "Redirect Link" and enter full path to the page you uploladed (or created), like: www.example.com/Optionally_Folder/ThisIsMyPage.html

That's it...

mgattereau
02-03-2006, 02:12 AM
Boccio,

So, if you want to add some static content in middle column when viewing some article, edit article_Full.tpl file, and find a section where article is displayed (that would be {ARTICLE_BODY} tag). There you can manipulate any way you want, and add whatever HTML code you want before or after this tag.

I want to create a page with no article in the middle, I want the following module

header
left side menu
MY CONTENT IN THE MIDDLE
right side menu
footer

the example you give will not allow to do that, I don;t think.

I thought I could create a template and an outside link would be able to point to it/

gcisnet
02-03-2006, 08:17 AM
I copied the category_main template into ctg_newname.tpl, edited that one to put my static content in the middle and created a category saved it, then edited the new category, and selected my new template instead of using the default one in the custom template. (you have to name it ctg_something.tpl for it to show up in the dropdown. worked fine. That gives you a page similar to any page displayed when it lists articles in a category, but has the static instead of the articles. And you can edit it in the template editor. In my case I wanted the articles below my content. I could have easily removed the {SORT_BY} and removed the articles in that category from being listed.

Perhaps you could try that. Very easy to do.

Regards,

mgattereau
02-04-2006, 06:03 AM
This is what I was looking for. The manual needs revamping
thanks

mrmotivation
07-25-2006, 05:16 PM
My page is going all crazy since I did this. What did I do wrong?


http://northiowabuzz.com/test3/


Thanks!


Aaron

Micha
07-26-2006, 01:48 PM
I've looked at your page source, it is quite a mess.
You have there two headers, one that is main and the other is placed below the search box, so basically you have <head>, <body> tags appearing twice on the same page, also before the beginning of your article there is a table that is 780px wide and that causes middle column to expand.

I would recommend that you create new category template [ admin>>templates>>create new category template] and paste your content in <td> instead of <br />{PAGINATION}<br />{ARTICLE_SHORT}<br />{PAGINATION} code.

That way the content will stay within the middle column and won’t expand.

You can also delete the following code from your custom ctg template
<tr>
<td valign="top" colspan="2"><div class="trWhite"></div><br/>{SORT_BY}</td>
</tr>