1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Node tree drastic delete!

Discussion in 'Styling and Customization Questions' started by Morgain, Jan 7, 2013.

  1. Morgain

    Morgain Well-Known Member

    My node tree on this particular site is almost all Link Forums. (They link to Library Articles)
    As a result the column on the right is big empty space.
    There's just one forum, and the one main Library. Nothing else has content in that column. Neither of those two are really necessary as this is a very static , slow changing site. It#s just about displaying content/ info pages and having a contact page. The one forum acts as a FAQ section but all the posts are by me as long term info items. What's new doesn't matter much it's more the entire collection of pages being tidy and navigable. Minimalist XF.
    If I want any news on anything I can use a Notice.

    http://fcuk.dev.waindigo.com/

    nodetree.png

    One option is to cut out that column completely.
    It would need to work on the Link Forum, Forum and Library template that displays their individual listings.
    Any advice?

    Also why is the site simply too wide? I have about an inch of horizontal scrollbar there which I dont have here or on my other XF installs.
     
  2. Morgain

    Morgain Well-Known Member

    Or maybe I could even have a column for pictures instead! That's be FANTASTIC!
     
  3. MattW

    MattW Well-Known Member

    Could you just add display: none to the element in EXTRA.css?

    .node .nodeLastPost {
    display: none;
    }
     
    Morgain likes this.
  4. MattW

    MattW Well-Known Member

    Or, delete this using TMS - node_forum_level_2

    Code:
    <div class="nodeLastPost secondaryContent">
                <xen:if is="{$forum.privateInfo}">
                    <span class="noMessages muted">({xen:phrase private})</span>
                <xen:elseif is="{$forum.lastPost.date}" />
                    {xen:phrase latest}: <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper wordTrim, $forum.lastPost.title, 30}</a>
                    <span class="lastThreadMeta"><xen:if is="{xen:helper isIgnored, $forum.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$forum.lastPost" /></xen:if>, <xen:datetime time="$forum.lastPost.date" class="muted" /></span>
                <xen:else />
                    <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
                </xen:if>
            </div>
     
            <div class="nodeControls">
                <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
            </div>
     
    Morgain likes this.
  5. Morgain

    Morgain Well-Known Member

    OK I've commented out the CONTENT of the column for both nodes that generate it.
    That is the bit that starts
    <div class="nodeLastPost secondaryContent">

    So it's now completely empty.
    But I dont know how to disable the column space itself. It'll be one of the containers I guess.
    Hmm maybe I could insert something nice in these - a pic - but then I'd need to be able to put a different pic for each of the Link forums.


    I now have:
    nodetree2.png
     
  6. Morgain

    Morgain Well-Known Member

    Thanks Matt your EXTRA.css way is more elegant. I'll try that.

    Now for something fun to do with the space!
    As I said I'd need to tell it to show a different pic per specific node - the Linkforums.
    I know that can be done because Jake did it with Category logos long ago.
     
  7. MattW

    MattW Well-Known Member

    If you remove the whole section which I posted above from the template, it won't generate the div area so you'll not have the white space. I've tried this on my test site and seems to work just for forum nodes, and doesn't affect anything else.
     
    Morgain likes this.
  8. Morgain

    Morgain Well-Known Member

    Matt, thanks. Crawling to bed at 3.30am ... more later but I really appreciate it.
     
    MattW likes this.
  9. MattW

    MattW Well-Known Member

    No worries, still another 2.5 hours before I finish work (hate working 12 hour nights sometimes)
     
  10. Morgain

    Morgain Well-Known Member

    Hmm actually I think I HAVE commented out all that, and for the Library node type as well.
    Maybe the column is being generated by the Link forums?
     
  11. Morgain

    Morgain Well-Known Member

    Doesn't seem to be. Link forums just seem to populate the first 2 columns.
    No it's got to be the container structure.
     
  12. MattW

    MattW Well-Known Member

    Appearance - Styles - STYLE - Style Property Groups - Style Properties: Forum / Node List

    Margin Right: delete out (default is 270px I think)

    test.PNG
     
    Morgain likes this.
  13. Morgain

    Morgain Well-Known Member

    Wheee! thanks a LOT Matt. I like it.
    Plain n oractical.
    http://fcuk.dev.waindigo.com/

    I'll try some small pics or something but it's fine for now. THANK YOU.
     
    MattW likes this.
  14. Morgain

    Morgain Well-Known Member

    Matt any idea why the page is too wide?
    It's OK in Chrome but in Firefox it's about an inch past the right side of my screen and my screen is quite wide.
    toowide.png
     

Share This Page