vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change layout for list.php? (https://vborg.vbsupport.ru/showthread.php?t=281383)

JustAskJulie 04-10-2012 05:49 PM

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.

JustAskJulie 04-15-2012 11:37 PM

No ideas on this?

Lynne 04-16-2012 01:16 AM

Not sure if it will work, but
hook_location: vbcms_layout_querydata

PHP Code:

if (VB_ENTRY == 'list.php') { 
$this->itemid x;


change x to the layoutid you want.

scarex 04-16-2012 01:57 AM

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

Lynne 04-16-2012 03:49 PM

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.

scarex 04-16-2012 11:58 PM

Quote:

Originally Posted by Lynne (Post 2320640)
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.

I will check again next week, now I'm travelling for job.

In the meantime, thank you Lynne for your feedback :)

JustAskJulie 04-22-2012 05:54 PM

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.

Lynne 04-22-2012 06:12 PM

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.)

JustAskJulie 05-03-2012 07:45 PM

thank you. I found the id and that worked.


All times are GMT. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01083 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete