The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change layout for list.php?
How do i change the layout for list.php . by default it uses the default layout, I'd prefer to use one of my other layouts.
|
#2
|
|||
|
|||
No ideas on this?
|
#3
|
||||
|
||||
Not sure if it will work, but
hook_location: vbcms_layout_querydata PHP Code:
|
#4
|
|||
|
|||
Unfortunately doesn't work because the layout seems to be set after that hook directly by the mysql query.
I have similar need, but I'm still figuring out how to change layout dinamically. ps: I started similar discussion some days ago here https://vborg.vbsupport.ru/showthrea...01#post2320501 |
#5
|
||||
|
||||
It worked just fine on my default 4.1.12 test site. My testing is to go to the Home page and click on a tag. That tag gives me the list.php page with the new layout. That is the list.php page I was trying to change.
|
#6
|
|||
|
|||
Quote:
In the meantime, thank you Lynne for your feedback |
#7
|
|||
|
|||
It's not working for me. by itemid, is that the name of the layout or is there a layout # or id somewhere that I'm missing?
I've tried changing it the layout name using several different layouts. One of them changed the layout of the list.php bringing the primary content up as a header but still kept the default layout below it (including all the content from the default layout). Others that I tried just made the whole page disappear. |
#8
|
||||
|
||||
It's a number assigned to the layout - 1,2,3,etc (it's the layout *id*, not the layout title). You can view it when viewing the source code for the layout dropdown. (You WILL need to view source code to get it or get it from the database - cms_layout.layoutid.)
|
#9
|
|||
|
|||
thank you. I found the id and that worked.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|