Main menu

Forum


× Help Forum English

Different Template for Different Categories

  • info@cctechlines.com
  • Autore della discussione
  • New Member
  • New Member
Di più
3 giorni 1 Ora fa #18978 da info@cctechlines.com
Different Template for Different Categories è stato creato da info@cctechlines.com
Hi
I am new to iCagenda so this could be extremely simple and I just haven't found it yet.

My website is built for nightlife with 3 different venues/categories, each venue has it's own Joomla Template with different styles/colours to suit the venues. Let's say my homepage overview is Red, venue 1 is orange, venue 2 is blue, venue 3 is green.

Homepage shows all events, Menus for each venue shows the events for that venue.

Clicking the menu to Venue 1 will show the orange styled template and all looks good with this venue's events listed. Also, click an event from this page it continues with the orange styling, same works good for other 2 venues and their styles.

But when I click on an event from the homepage it will show the event ok, but it has the styling from the homepage and not the template styling for that category.

I understand it will be something to do with the template being assigned to the menu, and clicking on the event from the homepage is not taking it through the menu and it's template, but how can I solve this, that if I click on an event from category/venue 1, it will use the appropriate template?

Hope this makes sense, and thanks for your patience if you read this far. :)

Regards
CT

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
1 Giorno 57 Minuti fa #18984 da Lyr!C
Risposta da Lyr!C al topic Different Template for Different Categories
Hello,

In Joomla, the template are assigned to page (which are creating with a menu item).

And pages are created by setting a specific view of a component.

If you set the home page menu item to display a menu type of List of events, then it will use the homepage to display details of the event.

The only way today is to use a module (Calendar module in free/pro or List of events module of the Pro version) displayed on the home page (in a module position or inside an article).
With a module, iCagenda will search for the best menu item to use to display the details view of an event (depending of the category, access, date... filtering options).

So, this could be set from a module, but not from a component view, as you may have set it.

Currently, i don't know if any third-party extensions exist to enable special conditions on template assignement (i know there was Advanced Template Manager by the past, but not sure this extension is still maintained).

I hope this helps you to clarify the logic behind Joomla and template attribution?

Best regards,
Cyril

Latest version : iCagenda 4.0.2
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

Moderatori: Lyr!C
Tempo creazione pagina: 0.053 secondi

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new