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

XF 1.4 Create New Page - what's the URL portion?

Discussion in 'XenForo Questions and Support' started by SnoSheriff, Oct 24, 2014.

  1. SnoSheriff

    SnoSheriff Active Member

    I created a test page using "Create New Page". Now I'd like to view it. Where can I see this new page? What's the URL to it? Here is a screenshot:

    upload_2014-10-23_18-18-43.png
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. SnoSheriff

    SnoSheriff Active Member

  4. SnoSheriff

    SnoSheriff Active Member

    For completeness purposes... I did the following to create a Menu tab that points to the above test page:
    • In the Admin panel, I went to Templates and searched for "navigation"
    • I placed the following code between Forums and Members section and the new menu called "Test-Page" appeared visible to users who were logged in
    HTML:
    <xen:if is="{$visitor.user_id}">
       <li class="navTab PopupClosed"><a href="{xen:link pages/test}" class="navLink">{xen:phrase Test-Page}</a></li>
    </xen:if>
     
    Last edited: Oct 24, 2014
  5. oO5 Dynasty

    oO5 Dynasty Active Member

    Do you put the css in the .extra and the html you want to display you put in the pages HTMl editor?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    It's up to you.

    You can include it in the page template directly but if you plan to use the CSS on other pages, I would recommend adding it to a custom CSS template and then calling that in the page content.
     
  7. oO5 Dynasty

    oO5 Dynasty Active Member

    ok thank you
     
  8. zoldos

    zoldos Well-Known Member

    To expand on this question, where can I type some simple text that will be shown when someone views the page? It is a tad unclear in Admin. Thanks!
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

  10. zoldos

    zoldos Well-Known Member

    Okay cool, so my text goes in Page Options-->Template HTML?
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.
     
    zoldos likes this.
  12. zoldos

    zoldos Well-Known Member

  13. sunnydaze

    sunnydaze Member

    First time Xenforo user. I'm unable to create a page node because I can't come up with a valid url. Get an error on the url every time.

    This is the valid url for a category node at the same level
    http://brazosinvestor.com/forum/index.php#who-we-are.1

    What is the valid url for a page at the top level titled Page Example?

    Getting errors for
    http://brazosinvestor.com/forum/pages/page-example (with and without end /)
    http://brazosinvestor.com/forum/page-example (with and without end /)
    http://brazosinvestor.com/forum/index.php#page-example (with and without end /)

    I've checked the help available at these links but still can't resolve.
    https://xenforo.com/community/resources/how-to-create-a-page-node.354/
    https://xenforo.com/community/pages/example-page/
    https://xenforo.com/community/threads/frequently-asked-questions.5183/

    And once a page is created, where is the link that shows how to make a page into a navigation tab?

    Thanks for the help.
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    What are you actually entering in the field?

    It should be something similar to page-example.

    That would require an add-on or you would have to edit the navigation template and add it manually.
     
  15. Amaury

    Amaury Well-Known Member

    @Jake Bunce's Nodes as Tabs add-on will work wonders for you.
     
  16. sunnydaze

    sunnydaze Member

    I have tried all 3 of these, and tried them with and without a trailing slash /
    I think what I really need is the entire url answer. That is, if "page-example" should actually be appended to the full url, the full url is what I need.

    As you see above, I have used "page-example". Got that part. It's the rest of it that's catching the error, I assume.
     
  17. Brogan

    Brogan XenForo Moderator Staff Member

  18. sunnydaze

    sunnydaze Member

  19. Brogan

    Brogan XenForo Moderator Staff Member

    Can you screenshot the page node details from the ACP?
     
  20. sunnydaze

    sunnydaze Member

Share This Page