Show Article in child section as well as parent section?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Riasat
    Senior Member
    • Aug 2006
    • 4013

    #16


    Basically, this will give you complete control over the grid using CSS so that you can modify the layout as any way you wish. However, you will need have pretty good CSS knowledge to be able to do it yourself.

    For the post layout, you will need to edit some templates and css. You can turn on "Show template names in HTML" from admincp > options > general settings.
    Then you can use your browser's inspector (press F12) to find out the template name.

    Comment

    • clayton47
      Senior Member
      • Oct 2011
      • 120
      • 4.1.x

      #17
      thanks im going to check this out. I have been doing "web design" for quite a few years. I am learning different types of "programming" as we speak. I can whip up some css and mild php no problem. My whole battle with vbulletin is getting to know the system and how it works and where everything is at. I wanted to create a complete custom template or skin. But the documentation is not very clear to me. Im working on getting more familiar with it, thanks for your help!

      Comment

      • clayton47
        Senior Member
        • Oct 2011
        • 120
        • 4.1.x

        #18
        I am struggling to create a widget to display a section/category *but with the same default style that the home page shows article content. So first I looked up the vbcms_content_article_preview template. Copied what I wanted to use for the article widget, created a template for it, so it would have the same layout and display the thumbnail. But I cant get it to work.

        The only reason I am doing this is because I cant get the home page to show articles from just one section. My sections are like this, and I renamed the "home" page to "latest news".

        Latest News
        TMG News
        Region 1 News
        Region 2 News
        Region 3 News
        Region 4 News
        pages - (which I used for static pages and just have them hidden from any widgets, and used a plugin to ad links to the main nav bar)

        On the home page I only want one article from "TMG News" to display, and below I already have the rest working of my layout with article widgets displaying region 1- region 4. I created a custom template layout for the "home" page that is applied. So everything is working but the custom widget for the "TMG News".

        I wouldnt even create one but I have to include sub sections to display articles on the Home page other wise I would be fine. And If I could assign articles to multiple sections I would be fine.

        Any advice on this, maybe I am going about it the wrong way?

        Comment

        • Riasat
          Senior Member
          • Aug 2006
          • 4013

          #19
          I don't think that is possible by default. You will need to make a custom widget.

          The only thing closest to this is edit home section page > display > Latest from each section.

          This will make home page display one article from each sections.

          Comment

          • clayton47
            Senior Member
            • Oct 2011
            • 120
            • 4.1.x

            #20
            is it possible to make a custom template that doesnt show any "primary content"? When I looked at creating a complete template, it wouldnt let me remove the primary content block.

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73452
              • 6.0.X

              #21
              There is a template hack over at www.vbulletin.org that allows you to hide the primary content on the root node or your index node (not necessarily the same thing).

              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • clayton47
                Senior Member
                • Oct 2011
                • 120
                • 4.1.x

                #22
                Before I start trying to hack or do anything really custom, what is the best way to do this? Thing is anything that is posted in a "section", when you click on the article in that section it uses that template when you view it! So all the widgets are displaying below the full content. If I could fix that I would just make TMG my home page, and display 1 post from that section. No sub sections. I would be good then.

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 73452
                  • 6.0.X

                  #23
                  You can tell the system to show one post from a section and to exclude all sub-sections by editing the options after clicking on the pencil.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  • clayton47
                    Senior Member
                    • Oct 2011
                    • 120
                    • 4.1.x

                    #24
                    Correct! But when you view that post it will use the template from that section that its tied to. Obviously if you created a custom home page with some widgets, you wouldnt want them to display on the article page.

                    Thats my problem at the moment.

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 73452
                      • 6.0.X

                      #25
                      You can have multiple layouts and each section can have their own. Set the content manually and decide what is pulled from what section. Have your sections pull the layout you want the article to be in.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • clayton47
                        Senior Member
                        • Oct 2011
                        • 120
                        • 4.1.x

                        #26
                        I understand. But if I want the home page to display one article from that section only. When the post is created you choose the section, the section page has "this section only" selected. When you click the article and view it in full, it displays the content using the section template. And my home template has four other widgets showing articles in each. If your not viewing the home page there is no need to see all the widgets under the full article view.

                        So I tried to create a section just for those articles thinking I could avoid it. But then the only way to show the article on the home page is to allow "articles from sub section". Every section is a sub section of the home page so it shows what's ever post is new from any other section.

                        You follow what I'm saying. It would be awesome to choose by check box what sub sections to display in other sections manually instead of by default, ALL!

                        Any suggestions. I hope I'm clear with my situation. I have tried every variation of controlling content.

                        Comment

                        • Wayne Luke
                          vBulletin Technical Support Lead
                          • Aug 2000
                          • 73452
                          • 6.0.X

                          #27
                          Create the post in another section and show it on the home page. That is what I am saying. When you manually select what articles to show in a section, you can choose articles from a sub-section, even if the option for including that content by default is not enabled.
                          Translations provided by Google.

                          Wayne Luke
                          The Rabid Badger - a vBulletin Cloud demonstration site.
                          vBulletin 5 API

                          Comment

                          • clayton47
                            Senior Member
                            • Oct 2011
                            • 120
                            • 4.1.x

                            #28
                            Ahhh I see what your saying. Man still one more step to have to do. I like it dynamic where everything just happens as you want it. Luckily it will be very few people that post in that section!

                            Thanks

                            Comment

                            • ewt
                              New Member
                              • Nov 2010
                              • 9
                              • 4.0.x

                              #29
                              How can I make an article to appear in more than one section?

                              Comment

                              • Wayne Luke
                                vBulletin Technical Support Lead
                                • Aug 2000
                                • 73452
                                • 6.0.X

                                #30
                                Originally posted by ewt
                                How can I make an article to appear in more than one section?

                                Without copying it, you can't at this time.
                                Translations provided by Google.

                                Wayne Luke
                                The Rabid Badger - a vBulletin Cloud demonstration site.
                                vBulletin 5 API

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                😀
                                😂
                                🥰
                                😘
                                🤢
                                😎
                                😞
                                😡
                                👍
                                👎