Displaying content in several columns
Displaying content in several columns
Does the {CONTENT} tag have any parameters that allow me to display some content in the Main block, some in the Left block, and some in the Right block?
In other words, if I have:
Articles
--Tutorials
----Tutorial 1
----Tutorial 2
--Tests
----Test 1
----Test 2
Links
--Hotels
--Cars
Files
--PHP
--JS
The top level navigation would show: Articles Links Files, the
Articles are shown in the Main block, the Links in the Left block, and the Files in the Right block.
Or, related to this, if I have the level 1 categories as my main horizontal navigation bar, and I select "Articles", then:
how do I display the article categories (i.e. Tutorials, Tests) in, say, the Right column as a menu, while the actual Tutorials and Test content is displayed in the Main column as I select the category in the Right column?
In other words, if I have:
Articles
--Tutorials
----Tutorial 1
----Tutorial 2
--Tests
----Test 1
----Test 2
Links
--Hotels
--Cars
Files
--PHP
--JS
The top level navigation would show: Articles Links Files, the
Articles are shown in the Main block, the Links in the Left block, and the Files in the Right block.
Or, related to this, if I have the level 1 categories as my main horizontal navigation bar, and I select "Articles", then:
how do I display the article categories (i.e. Tutorials, Tests) in, say, the Right column as a menu, while the actual Tutorials and Test content is displayed in the Main column as I select the category in the Right column?
add to the main block: {CONTENT}
add to the left block: {NAV_TABLE_COLUMN}
read more about the tags: http://phpwcms.de/index.php?id=17,0,0,1,0,0
add to the left block: {NAV_TABLE_COLUMN}
read more about the tags: http://phpwcms.de/index.php?id=17,0,0,1,0,0
That does not do what I was asking in the post;
{NAV_TABLE_COLUMN} displays a full menu with all the levels and then all the content is displayed in the Main block.
I'll re-formulate what I was asking:
- Level 1 categories are displayed as a horizontal menu bar in the header;
- When an entry is clicked in this top-level menu, its sub-categories are displayed as another menu in the right column; when I select another menu entry, then the subcategories for this menu are displayed in the RIght block.
- When I click on a sub-category in the Right column, the content (e.g. Tutorial 1) is displayed in the Main column.
{NAV_TABLE_COLUMN} displays a full menu with all the levels and then all the content is displayed in the Main block.
I'll re-formulate what I was asking:
- Level 1 categories are displayed as a horizontal menu bar in the header;
- When an entry is clicked in this top-level menu, its sub-categories are displayed as another menu in the right column; when I select another menu entry, then the subcategories for this menu are displayed in the RIght block.
- When I click on a sub-category in the Right column, the content (e.g. Tutorial 1) is displayed in the Main column.
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Could this be somehow hacked to have {NAV_LIST_CURRENT}Oliver Georgi wrote:NO - not implemented.
take one parameter which gives it the structure level or name
and allow {CONTENT} to also take a parameter if needed?
Then, since the {NAV_LIST_CURRENT} already allows me to navigate a substructure, we could display content as described in the post.
So when I navigate {NAV_TABLE_COLUMN}, it retrieves all the content and displays it wherever the {CONTENT} tag is, whereas if I use {NAV_LIST_CURRENT:level} then only the content for that level is displayed.
Maybe something to think about for a future release.
The reason this might be useful to implement is that it would give us more flexibility in bringing content of interest to the reader.Oliver Georgi wrote:NO - not implemented.
For instance, if the "Main" block displays some article on movies,
then we can have in another column related content, visible right there, next to the article.
For instance we could display related links, related articles, or whatever other content we might want to bring to the user's attention.
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
But it's also true: the menu section is not ready yet. But everything in frontend rendering is prepared for that. The cat_ID is available. Also the list of all current strucuture levels articles and so on. There is also a function that can read the list of all articles. Combine articles array with structure array and you will have the sitemap.
If somebody is interesting in creating such functionality it's not very hard to do. Just have alook into frontend functions and you will see what I mean.
Oliver
If somebody is interesting in creating such functionality it's not very hard to do. Just have alook into frontend functions and you will see what I mean.
Oliver
Ok, let's see if we can solve the problem another way:
We know we can add different content types to an article: a link list, related articles. images, etc. This content is normally displayed sequentially, after the main article content.
So, how can we display this other content in the same column (since it is not possible to display it in another colum) but formatted in a different way:
For instance, after the main article text have two "sub-columns": the left column displays the links, while the right one displays the related
article titles.
In other words, how can we alter the layout of the content which is made of of different content types created with "add content"?
We know we can add different content types to an article: a link list, related articles. images, etc. This content is normally displayed sequentially, after the main article content.
So, how can we display this other content in the same column (since it is not possible to display it in another colum) but formatted in a different way:
For instance, after the main article text have two "sub-columns": the left column displays the links, while the right one displays the related
article titles.
In other words, how can we alter the layout of the content which is made of of different content types created with "add content"?
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Hm, ha, yes, no - it's difficult to describe.
There is a lot of stuff hardcoded in list_articles_summary but some spaces - and how many summaries should be shown - can be predefined in config.template_default.inc.php.
This is something that might be changed by use of an extra value like
max_count_summaries_shown
new replacement tag for {SHOW_ALL_OTHER_ARTICLES_OF_THIS_CAT}
More work but possible.
Oliver
There is a lot of stuff hardcoded in list_articles_summary but some spaces - and how many summaries should be shown - can be predefined in config.template_default.inc.php.
This is something that might be changed by use of an extra value like
max_count_summaries_shown
new replacement tag for {SHOW_ALL_OTHER_ARTICLES_OF_THIS_CAT}
More work but possible.
Oliver
How have you done it?
Hi Marco, saw your site, great and well-done!
So I'm just before the same hurdle:
- Level 1 categories are displayed as a horizontal menu bar in the header;
- When an entry is clicked in this top-level menu, its sub-categories are displayed as another menu in the right column; when I select another menu entry, then the subcategories for this menu are displayed in the RIght block.
So nowadays there are dynamical replacement tags for NAV_TOP-LIST and NAV_LIST_CURRENT, but I dont know how to use it
Can you give me a hint?
Kind regrds, Tommi, Stuttgart
So I'm just before the same hurdle:
- Level 1 categories are displayed as a horizontal menu bar in the header;
- When an entry is clicked in this top-level menu, its sub-categories are displayed as another menu in the right column; when I select another menu entry, then the subcategories for this menu are displayed in the RIght block.
So nowadays there are dynamical replacement tags for NAV_TOP-LIST and NAV_LIST_CURRENT, but I dont know how to use it
Can you give me a hint?
Kind regrds, Tommi, Stuttgart