Support » Plugins » Page independant text into the sidebar.

  • Resolved Dtortot



    Let me try to explain this better. I want Page A to have some text in it’s sidebar, but that text will have to be different from Page B and Page C so forth. It has to be page independant and I need have access to edit the text that goes into each and every page, because I am the one typing it so I could make mistakes.

    For better understanding, go to that is my site. Now, access any review. What I want to do is add a few extra information like author, date released and number of books for each and every review, so each and every review has different information that needs to be page specific.

    I tried this plug in, but it is not even related to the issue I have in mind.

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    So, where is this extra data stored, and how? Or have you not put it in yet?

    Ok – two questions

    #1 – does the information have to be in the sidebar, or does it just have to seperate and “off to one side” of the rest of the article?

    #2 – Does the particular information have to be shared between pages – say, an author profile that might go on multiple reviews of his various books?

    If the answers are both “no”: it just has to be to the side not in the sidebar, and the information is unique to the page or at least you’re willing to cut-and-paste it into the multiple pages, then I would suggest just using a floating div tag, something like this.

    <h2>My amazing article</h2>
    This is an intro paragraph.

    <!-- This is the floating info box -->
    <div style="width: 200px; float: right; padding: 5px; margin 5px; border: solid black 1px;">
    This is where the author statistics are kept
    <!-- That's all there is to the floating info box -->

    Here's some more text
    The end.

    A little more “hands on”, and it requires you to turn off the WYSIWYG editor and edit the page HTML code direct, but it would work.

    @otto42: It is not in yet because I haven’t found a way to add it.

    @ChalesKrause: Thanks, that was really helpfull, seriously. I just tweaked the dimension and got a result that was not quite what I was looking for, but even better.

    Now, other people access the site to post their reviews and they don’t know a thing about coding, so is there any good plugin you know about so I can add a button to the TinyMCE so they can still use the WYSIWYG editor and add this new div directly?

    I can add it to the normal editor, I know how to do that but I don’t know how to add it to the Tiny MCE.

    couldn’t you use if/else logic based on is_category() in your sidebar and use includes to display the text? Then only the appropriate include displays?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page independant text into the sidebar.’ is closed to new replies.