vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   VB CMS: Display Sub-Sections Instead of Content Previews on Section Landing Pages? (https://vborg.vbsupport.ru/showthread.php?t=310002)

drumnbassbboy 03-28-2014 09:07 PM

VB CMS: Display Sub-Sections Instead of Content Previews on Section Landing Pages?
 
I have a section that is merely used to house additional sub-sections. When the user clicks on the main section from the section widget, they land on a page that displays the verbiage "There is no content in this section". This is correct because I do not desire to display the content from the sub-sections on the main sections landing page.

What I want to do is just display the sub-sections that are under this main section on the main sections landing page. I know I am not the first one to want to do this. This should be something that can be done out of the box.

Can someone please lend some guidance?

Dead Eddie 03-29-2014 04:47 AM

I'm guessing the best way of doing what you're looking to do would be to use the PHP direct evaluation content type and build the page manually. I agree...more dynamic content listings should be available out of the box...but there really aren't any.

drumnbassbboy 03-30-2014 02:05 AM

Dead Eddie,
I believe the solution I am going to go with is creating different templates for these particular sections that just house other sub-sections and linking to them with static page content. It will look as if it is the section displaying the sub-categories. In reality, it is a static page with nothing displayed but the html content (i.e. hide page title, author, etc).

Do you see any drawbacks to this?
https://www.youtube.com/watch?v=jEWLLjcD-9w#t=28

Though, if I knew what to call to have a php script loop through the sections sub-sections and print the links, I would technically only have to create a single new template, not multiple.

Anyone?


All times are GMT. The time now is 04:47 PM.

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.00986 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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