vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CMS Widget question (https://vborg.vbsupport.ru/showthread.php?t=310571)

licensinglinks 04-17-2014 01:45 PM

CMS Widget question
 
Hi, I have a simple Static HTML widget showing in the sidebar of my CMS.

I have a number of pages of articles, but only want it to display on page 1, so it's on only displayed on one SINGLE page (I.E: just the homepage)

Is there a way of doing that?

Lynne 04-17-2014 05:04 PM

Since you set a layout for a section, if you don't want the articles to have the same layout as the Home section, then put them in a different Section and give it a layout without that widget.

licensinglinks 04-18-2014 08:57 AM

The issue I have is that I want the widget to show on

http://www.domain.com/content.php

but not on:
http://www.domain.com/content.php?page=2
http://www.domain.com/content.php?page=3
http://www.domain.com/content.php?page=4
http://www.domain.com/content.php?page=5

etc.

Do you see what I mean?

tbworld 04-18-2014 02:55 PM

Once you create a new section in the "admincp --> section manager", you may assign the new section a new layout.

1.) Pre-create a new section layout via the "admincp -> Layout Manager". This will contain your new or different widgets.
2.) Create new section in the admincp.
3.) Assign content to this new section. (Make sure it is published).
4.) Select your 'Articles' or 'Home' tab and select your new section.
5.) Now select via the 'pencil' and edit the section layout.

Note - On an existing section you can also assign a different layout. Use the 'Pencil' editor on the section page.

This is what @Lynne was referring too, I just expanded it.

licensinglinks 04-18-2014 06:43 PM

1 Attachment(s)
Thanks both for your help, but perhaps I'm not making clear what I'm trying to do. I don't want to customise a different section. I'm trying to customise pages of the same section

My homepage shows the latest 12 articles in my CMS. There are multiple pages to my homepage showing the rest of the articles. The user navigates to the other pages using the tool at the bottom of the page (pictured below).

I just want to ensure that the widget only appears on p.1 of the CMS (i.e. the homepage), and not the other 6 pages.

Does that make sense? Sorry if it already did and I'm just widely misinterpreting your replies.

Attachment 148908

tbworld 04-18-2014 07:55 PM

I see what you are looking for. There is an old post on vBulletin.org where I show how to do something similar (simply modify the widget code, I think). Let me see if I can find it. If not, I will re-post as soon as I have the time. Glad you took the time to clarify the question. :)

licensinglinks 04-19-2014 10:22 AM

Quote:

Originally Posted by tbworld (Post 2493758)
I see what you are looking for. There is an old post on vBulletin.org where I show how to do something similar (requires to simply modify the widget code). Let me see if I can find it. If not, I will re-post as soon as I have the time. Glad you took the time to clarify the question. :)

Great - that sounds perfect. If you can dig it out it would be greatly appreciated :)


All times are GMT. The time now is 10:35 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.01017 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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