Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,856

    Question How do I build a Page but prevent it from Publishing?

    I have a modest site of 30 pages. I want to develop new content that is not immediately accessible. I am using Previous/Next buttons with <Next page> & <Previous page> as a Repeat on all Pages.
    If someone knew the page name, they might manually access it through its URL; I not mind this discovery, in this instance, but generally preventing viewing may be the best.

    I could force my buttons either side of the page to have a different link to skip the page. I don't like this as I may update a navbar or the buttons and forget something and I will be republishing for little benefit.

    I could write a jQuery script that establishes the referer (e.g. history.previous) and redirects over the page [forward] (the majority of instances I would imagine) or back as appropriate.
    The benefit of this it could be enabled and disabled form a single file so no Xara publishing would be necessary.

    Have I missed a "Do not Publish this Page" option somewhere?

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,512

    Default Re: How do I build a Page but prevent it from Publishing?

    There is no option to publish only certain pages. It's all or nothing.

    But if you don't want a page to publish, then remove it from your document.

    Go to the page you don't want to publish and click on the pasteboard but not on the page, then Edit > Copy Page.

    Open a new blank page and Edit > Paste > Paste Page.

    Name and save this page. Delete the page from your website and Publish.

    When you are ready, copy the page from the document and Paste Page back into your website document.

    Would it be easier to publish selected pages? One can only hope we get this option soon.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,856

    Lightbulb Re: How do I build a Page but prevent it from Publishing?

    Gary, thank you for your reply and confirmation of my suspicions.

    I have a "solution" of sorts:
    • I have these pages: ... | codebox.htm | snow.htm [the one I wish to skip] | excel.htm | ... - their names are spurious and not relevant but useful as an example.
    • I created two dummy pages either side of snow.htm, which I have called - before-snow.htm and after-snow.htm.
    • In before-snow.htm, Web Properties > Page > HTML code (head) I placed <meta http-equiv="REFRESH" content="0;url=excel.htm">.
    • In after-snow.htm, Web Properties > Page > HTML code (head) I placed <meta http-equiv="REFRESH" content="0;url=codebox.htm">.


    It sort of works but you do get a glimpse of the before-snow.htm page so changing it to match the site background may make the transition less obvious.
    Doing this, "hides" snow.htm from the site but allows me to enter its URL directly to check its presentation across browsers before publishing.


    Quote Originally Posted by gwpriester View Post
    There is no option to publish only certain pages. It's all or nothing.

    But if you don't want a page to publish, then remove it from your document.

    Go to the page you don't want to publish and click on the pasteboard but not on the page, then Edit > Copy Page.

    Open a new blank page and Edit > Paste > Paste Page.

    Name and save this page. Delete the page from your website and Publish.

    When you are ready, copy the page from the document and Paste Page back into your website document.

    Would it be easier to publish selected pages? One can only hope we get this option soon.

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,925

    Default Re: How do I build a Page but prevent it from Publishing?

    How about dragging the page/pages you don't want published to the bottom of the page stack. On opening page either delete the previous button or link it to the last page in the page gallery you want viewable. Similarly on the last page you want viewable link the next button to the first page.

    When you want to publish these hidden pages just drag them up the page gallery.

    In the attached xar Page 3 doesn't show. But drag the page up to between page2 & page4 in the layer gallery & it's viewable without any need to change any button actions

    EDIT: If you use repeat on all pages you'll need to delete these from the first & last published page and replicate them to point as desired.
    Attached Files Attached Files
    Last edited by Egg Bramhill; 05 December 2012 at 12:10 AM.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,856

    Thumbs up Re: How do I build a Page but prevent it from Publishing?

    Egg, brilliant.
    Rather than delete the Repeat on all Pages button on the last page before those I wish to hide, I would clone the same button in situ (Ctrl-k) and set its Link to the first (index) page.
    On the first (index) page to do the same for the Previous button would require knowing the last page you want to publish; I could always just delete that index page button.

    All in all, a good solution.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •