diiferent view to different link

More
9 years 11 months ago - 9 years 11 months ago #2288 by robidos
that's exactly what am looking for,

its only sticky on the nummers, not the dropdowns
dayhopper.nl/elektronica/Huishouden/start180.html?v=list

ah, i understand the concept now, to make it sticky you need to tweak every url in the default_xxx too to make it work, and the same for mod templates, indeed, this will require [strike]some[/strike] allot more work to make it persistent.

mabye it can be set in a quick session? or does the backend setting override it again ?

www.ostraining.com/blog/how-tos/developm...-sessions-in-joomla/
Last edit: 9 years 11 months ago by robidos.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #2360 by gsmiphone
so this was my simple query. may we get a answer of this please ? that where in the script we code to change the layout on fly?


www.koopjeaanbieding.nl/

i made these view to thumbnail, now the below two links are the same page , could we make the these two pages to different view like listing view?

www.koopjeaanbieding.nl/dagaanbieding
www.koopjeaanbieding.nl/index.php/Dagaanbieding

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago - 9 years 11 months ago #2361 by robidos
there a basically several techniques discussed here, and like bram said, joomla has different ways to achieve the same thing or do things alike, but i prefer the v= param technique.

this can be done by editing (add)
/components/com_datafeeds/views/items/tmpl/default.php
(somewhere about)
line 15: disable the old $template line by #
line 16: $template=JRequest::getVar('v',$this->where);

i also planted the line 16 also in the if AND esle, just to be sure

now you have to make links like

/dagaanbieding?v=thumb
/dagaanbieding?v=list

or to make it sticky, it needs a bit more php coding in the default_thumb.php, default_list.php and so on, again, there a several ways to do so, you can place the data in a cookie, login profile, or retrieve it as a user session.
Last edit: 9 years 11 months ago by robidos.
The following user(s) said Thank You: bram

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #2366 by gsmiphone
Thank you so much for your kind assistance. but here in this way we need to change the URL but in joomla we have different links automatically created like below.

koopjeaanbieding.nl/index.php

koopjeaanbieding.nl/index.php/dagaanbiedingen

so we coded differently there like below.

if(stristr($_SERVER,"index.php/Dagaanbieding"))
{
$template="full";
}
else
{
$template=$this->where;
}

and it did exactly what i asked.

thank you all once again.

Please Log in or Create an account to join the conversation.

Time to create page: 0.174 seconds