Forum Discussion

Beryllium's avatar
12 years ago

How do I know what page I'm on to edit?

I'm on page /t5/custom/page/page-id/Forums  

 

I try turning on the toolbelt to tell me what page it is, but it gives me nothing. I click on a few components to see what pages they're on to try to figure out what page it is. 

 

There's a "Ask A Question" component, so I click that. The toolbelt tells me that it exists on the following pages:

 

  • GroupPage
  • Q&A Page
  • Q&A Category Page
  • ForumPage
  • Q&A Community Page
  • Q&A Question Page

 

OK, great. I click another component "Now in Forums". The toolbelt tells me that this component exists on the pages:

 

  • ForumMainPage
  • BlogsCustomPage
  • CommunityPage

 

What?  Notice that there is ZERO overlap between the components. How can that be when both are on the same page?

 

I edit both ForumPage and ForumMainPage and my edits have no effect showing that I'm not editing the correct page. What's going on? How do I know what the current page I'm browsing is and how it relates to what I should edit in the Studio?

  • ChiaraS's avatar
    ChiaraS
    Lithium Alumni (Retired)

    According to the url, it's a custom page so it should be listed under Custom, with name "Forums".

     

    Not sure why it's not listed by Toolbelt, though...

  • MoniqueL's avatar
    MoniqueL
    Lithium Alumni (Retired)

    To add to Chiara's point, its also a best practice to name custom pages something thats a bit more unique, to avoid this type of confusion later down the road if you need to trouble shoot something or continue with more complex development.

     

    Another quick way to figure out what Page-type you're on and thus which to edit in studio would be by either viewing the page source or using a browser developer tool (Firebug for Firefox, Chrome has a built in one). Once you're viewing the source code, you'll see that the body tag has a class associated with it. The last class name in a stack refers to the page name and what you'll watch to search for in studio to edit. In the case of custom pages, it'll create a class thats the same as whatever you named your custom page when you created it.

     

    Hope this helps.