Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 04-17-2014, 01:45 PM
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 04-17-2014, 05:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 04-18-2014, 08:57 AM
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 04-18-2014, 02:55 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
evelynpriscilla
  #5  
Old 04-18-2014, 06:43 PM
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 04-18-2014, 07:55 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-19-2014, 10:22 AM
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08273 seconds
  • Memory Usage 2,234KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete