[TYPO3] Simulate page for menus

Бойчук Петро petro.boychuk at gmail.com
Wed Sep 19 15:51:54 CEST 2007


Please, help me with advice...

On 9/7/07, Бойчук Петро <petro.boychuk at gmail.com> wrote:
> Hi list!
> I would like you to give me an advice of how to solve the following problem.
>
> I have pages-categories:
> cat1
> - subcat 1-1
> -- subsubcat 1-1-1
> -- subsubcat 1-1-2
> -- subsubcat 1-1-3
> -- subsubcat 1-1-4
> - subcat 1-2
> -- subsubcat 1-2-1
> -- subsubcat 1-2-2
> - subcat 1-3
> ...
> cat2
> ...
> cat3
> ...
> Each page has items-articles in it, simple table with several fields.
> I created plugin to show items on these pages. Using TemplaVoila I've
> created typoscript element lib.itemsList and in setup I wrote:
> lib.ItemsList < plugin.tx_itemslist_pi1
> On each page I show list of all items from this page and all subpages.
> Besides, each page has its own image (use Files filed in backend),
> navigation - list of subcategories, list of all categories on this level
> (with active element) and so on.
>
> Now I have to show single view for each article, all navigation output must
> be used from page where this article is located. F.e. if article is located
> on page "subsubcat 1-1-3" then in navigation this page must be shown as
> active.
>
> I have 3 solutions. Which one is the best solution to your mind?
> 1) Create on each page-category new page-singleview and place plugin with
> single view on each and show article with id from piVars.
> 2) Create 1 page for all items. I mean 1 page for single view and show
> needed article with id from piVars
> 3) Create mode for existing plugin, and show this mode when I have piVar set
>
> Pros and cons
> 1) This is not a good way of doing it.
> 2) The problem is that it is impossible to show navigation, because i am on
> different page. Maybe someone can tell how to simulate one page on another?
> 3) This is the easiest way, but not good enough. I can pass id of element
> from one category to page from another category, what then?
> And I can't create link like http://somesite.com/article/2345/ not
> http://somesite/cat1/subcat1-1/article/2345/
>
> Could you please suggest me which one is the best way to go?
> Maybe you have some other ideas?
>
> thanks in advance.
>
>
> --
> З повагою,
> Бойчук Петро
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


-- 
З повагою,
Бойчук Петро


More information about the TYPO3-english mailing list