Page 1 of 3

Displaying content in several columns

Posted: Fri 21. Nov 2003, 23:44
by marco
:?: 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?

Posted: Fri 21. Nov 2003, 23:54
by cartman
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

Posted: Sat 22. Nov 2003, 00:25
by marco
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.

Posted: Sat 22. Nov 2003, 00:28
by Oliver Georgi
NO - not implemented.

Posted: Sat 22. Nov 2003, 00:43
by cartman
You can do it with xara webstyle and a lot of time :)

Posted: Sat 22. Nov 2003, 15:34
by marco
Xaraya? You must be joking :P

Posted: Sat 22. Nov 2003, 22:35
by marco
Oliver Georgi wrote:NO - not implemented.
Could this be somehow hacked to have {NAV_LIST_CURRENT}
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.

Posted: Sat 22. Nov 2003, 22:41
by marco
Oliver Georgi wrote:NO - not implemented.
The reason this might be useful to implement is that it would give us more flexibility in bringing content of interest to the reader.

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.

Posted: Sat 22. Nov 2003, 23:00
by Oliver Georgi
Marco wrote:For instance we could display related links, related articles, or whatever other content we might want to bring to the user's attention.
But this is possible yet.

Posted: Sat 22. Nov 2003, 23:05
by Oliver Georgi
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

Posted: Sun 23. Nov 2003, 01:20
by marco
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"?

Posted: Sun 23. Nov 2003, 01:43
by Oliver Georgi
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

Posted: Sun 23. Nov 2003, 14:04
by cartman
I said XARA_WEBSTYLE (menu designer program) and NOT xaraya (that suxxx)

Posted: Sun 23. Nov 2003, 15:12
by marco
I still don't see how can XARA_WEBSTYLE format phpwcms content in multiple columns?... Sorry

How have you done it?

Posted: Thu 4. Mar 2004, 18:30
by tommi
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 :oops:
Can you give me a hint?
Kind regrds, Tommi, Stuttgart