Turn off a page?

Hi folks,

Searched the forums to no avail. Question is… on several client sites I’ve developed, they sell seasonal merchandise.

Is there a way to toggle a page on and off? I’d like to keep everything current, but say, turn off Christmas when it’s no longer needed.

thanks much!
Andrew


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Could you explain a little better what you are trying to do
please? …turning off Christmas when it is no longer needed!

On Jan 23, 2009, at 4:20 PM, Andrew Macris wrote:

Hi folks,

Searched the forums to no avail. Question is… on several client
sites I’ve developed, they sell seasonal merchandise.

Is there a way to toggle a page on and off? I’d like to keep
everything current, but say, turn off Christmas when it’s no longer
needed.

thanks much!
Andrew


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

For the record, I am not for abolishing Christmas! :stuck_out_tongue:

If you go to www.gawttreats.com/shop-online.html, you will see two collections. The classic collection, which appears all the time, and a seasonal collection. Right now, it’s the Valentine’s Day collection. Next, we will have an Easter collection, followed by something else next. Rather than creating new Freeway files each time the seasonal collection changes, I’d like to keep one master file that has all the holidays.

That way, I would just turn off what pages are not to be published.

Does this clarify the issue?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The simplest way to do this I can think of would be to make a
christmas/ folder, move all the christmas pages into it, and make sure
that you have only a few top-level links into that folder, rather than
a lot of deep links to individual products (that way you will have
less to change when you want to hide the seasonal stuff).

Now, when it’s time to retire Christmas for the year, just move the
references to the pasteboard (and un-check Publish for good measure).
Then, to kill any bookmarks or history references, just rename the
folder to something else, like christmas_is_hiding_now/.

That’s it.

Walter

On Jan 23, 2009, at 11:11 AM, Andrew Macris wrote:

For the record, I am not for abolishing Christmas! :stuck_out_tongue:

If you go to www.gawttreats.com/shop-online.html, you will see two
collections. The classic collection, which appears all the time, and
a seasonal collection. Right now, it’s the Valentine’s Day
collection. Next, we will have an Easter collection, followed by
something else next. Rather than creating new Freeway files each
time the seasonal collection changes, I’d like to keep one master
file that has all the holidays.

That way, I would just turn off what pages are not to be published.

Does this clarify the issue?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Really it would be great if there were a page action that had only two options:

[ ] Publish this page
[ ] Do not publish this page

Is this possible? Does it exist?

thanks,
Andrew


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Andrew, if you make up your pages as masters you should only have to
change the links from your menu.

Try this: create a folder in your site panel to hold each seasonal set
of pages that link to each other and then alter your main menu to link
to the primary page for the season you want. Separate folders will
keep the seasons in order and save you working on the same pages time
after time. All though all seasons will be uploaded, only the one you
want will be available to customer traffic via the menu.

HTH Colin

And a belated Happy New Year, BTW.

On 23 Jan 2009, at 16:11, Andrew Macris wrote:

,I would just turn off what pages are not to be published.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Jan 23, 2009, at 5:11 PM, Andrew Macris wrote:

For the record, I am not for abolishing Christmas! :stuck_out_tongue:

If you go to www.gawttreats.com/shop-online.html, you will see two
collections. The classic collection, which appears all the time, and
a seasonal collection. Right now, it’s the Valentine’s Day
collection. Next, we will have an Easter collection, followed by
something else next. Rather than creating new Freeway files each
time the seasonal collection changes, I’d like to keep one master
file that has all the holidays.

That way, I would just turn off what pages are not to be published.

Freeway has no way of turning off publish or upload of selected
pages… I wish this where possible! I don’t think there is an action
for this but I may be wrong.

If I where doing this I might do a little hand coding to make things
easier for me…

  1. I would create file called say: config_seasonal.php that might look
    like this…
<?php
$seasonal_show = 'easter';
?>
  1. Include the file: config_seasonal.php by placing this code in the
    for example on the pages you need to use these links, or
    anywhere before where you need the links.
<?php
include_once ('config_seasonal.php');
?>
  1. Change the pages that use this include to end in .php and not .html
    or .htm

  2. Where the links are I would then create a little bit of code like:

<?php
switch ($seasonal_show) {
     case 'easter':
         // print out the code for the link or/and image for easter
	// The following would print out a link
	echo '<a href="easter.html">Easter</a>
         break;
     case 'christmas':
         // print out the code for the link or/and image for Christmas
	// The following would print out a link
	echo '<a href="christmas.html">Christmas</a>
         break;
     default:
        // Do not show any link or code
}
?>

You could add this code by inserting a ‘Markup item’ tand position it
where you want the output.

Now when you change the value of the php variable $seasonal_show from
‘easter’ to ‘christmas’ the code for the relative page ink etc will be
shown, or ‘’ to not have any link. You could actually even set the
value of $seasonal_show to change when for certail dates if you didn’t
want to change it manually.

HTH


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 23 Jan 2009, 3:27 pm, Andrew Macris wrote:

Really it would be great if there were a page action that had only two options:

Publish this page
Do not publish this page

Is this possible? Does it exist?

thanks,
Andrew

Sadly, no and no. Actions can’t control Freeway to this level. This would need to be something the app itself handles as it’s quite a core thing you are asking. Not publishing a page raises all manner of questions that Freeway needs to resolve internally.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry typos:

the following:

<?php
switch ($seasonal_show) {
    case 'easter':
        // print out the code for the link or/and image for easter
	// The following would print out a link
	echo '<a href="easter.html">Easter</a>
        break;
    case 'christmas':
        // print out the code for the link or/and image for Christmas
	// The following would print out a link
	echo '<a href="christmas.html">Christmas</a>
        break;
    default:
       // Do not show any link or code
}
?>

should be:

<?php
switch ($seasonal_show) {
    case 'easter':
        // print out the code for the link or/and image for easter
	// The following would print out a link
	echo '<a href="easter.html">Easter</a>';
        break;
    case 'christmas':
        // print out the code for the link or/and image for Christmas
	// The following would print out a link
	echo '<a href="christmas.html">Christmas</a>';
        break;
    default:
       // Do not show any link or code
}
?>

On Jan 23, 2009, at 5:33 PM, Mike B wrote:

On Jan 23, 2009, at 5:11 PM, Andrew Macris wrote:

For the record, I am not for abolishing Christmas! :stuck_out_tongue:

If you go to www.gawttreats.com/shop-online.html, you will see two
collections. The classic collection, which appears all the time,
and a seasonal collection. Right now, it’s the Valentine’s Day
collection. Next, we will have an Easter collection, followed by
something else next. Rather than creating new Freeway files each
time the seasonal collection changes, I’d like to keep one master
file that has all the holidays.

That way, I would just turn off what pages are not to be published.

Freeway has no way of turning off publish or upload of selected
pages… I wish this where possible! I don’t think there is an
action for this but I may be wrong.

If I where doing this I might do a little hand coding to make things
easier for me…

  1. I would create file called say: config_seasonal.php that might
    look like this…
<?php
$seasonal_show = 'easter';
?>
  1. Include the file: config_seasonal.php by placing this code in the
    for example on the pages you need to use these links,
    or anywhere before where you need the links.
<?php
include_once ('config_seasonal.php');
?>
  1. Change the pages that use this include to end in .php and
    not .html or .htm

  2. Where the links are I would then create a little bit of code like:

<?php
switch ($seasonal_show) {
   case 'easter':
       // print out the code for the link or/and image for easter
	// The following would print out a link
	echo '<a href="easter.html">Easter</a>
       break;
   case 'christmas':
       // print out the code for the link or/and image for Christmas
	// The following would print out a link
	echo '<a href="christmas.html">Christmas</a>
       break;
   default:
      // Do not show any link or code
}
?>

You could add this code by inserting a ‘Markup item’ tand position
it where you want the output.

Now when you change the value of the php variable $seasonal_show
from ‘easter’ to ‘christmas’ the code for the relative page ink etc
will be shown, or ‘’ to not have any link. You could actually even
set the value of $seasonal_show to change when for certail dates if
you didn’t want to change it manually.

HTH


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As an easy option…

Use the publish button in the inspector palette. You could turn off
part of a page by selecting the item and un-ticking the publish
tickbox so your seasonal item does not get published when you upload.

You could even stack each season on top of each other and select via
the site/page item panel to keep everything together and toggle the
right season on/off to publish at the right time - not automated but
quick. We’ve done similar to this to activate christmas decorations/
offers on sites. It keeps everything in one file.

*** this does stop someone getting to a page behind the unpublished
link. e.g. they could bookmark a Christmas collection page and come
back in June. You would also have address this issue as well.

David

On 23 Jan 2009, at 16:11, Andrew Macris wrote:

For the record, I am not for abolishing Christmas! :stuck_out_tongue:

If you go to www.gawttreats.com/shop-online.html, you will see two
collections. The classic collection, which appears all the time, and
a seasonal collection. Right now, it’s the Valentine’s Day
collection. Next, we will have an Easter collection, followed by
something else next. Rather than creating new Freeway files each
time the seasonal collection changes, I’d like to keep one master
file that has all the holidays.

That way, I would just turn off what pages are not to be published.

Does this clarify the issue?

David Owen :: Freeway Friendly Web hosting and Domains ::

http://www.ineedwebhosting.co.uk :: I Need Web Hosting Mac friendly web hosting and domain registration


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you for all your suggestions. I will explore all of them. I might just remove the navigation to these but post an “Item not available now” message or something. I’ll also turn off the Mal’s connection.

Softpress… can we think about including a “Do not publish page” radio button somewhere this in the next release?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Jan 23, 2009, at 6:04 PM, Andrew Macris wrote:

Softpress… can we think about including a “Do not publish page”
radio button somewhere this in the next release?

I think this must have been requested by several people already, I
know I have asked for it ‘at some time or other’, the more the merrier
and then we might just get the option. Not sure about the check box
though, I think this might need to be a menu item along with a
contextual menu that opens on clicking over the page not ‘or to be’
published might be a nice way of handling it, then a page selected not
to publish has a little red x, dot or similar on the icon… then
someway an option of removing or not removing the page from the server
if it exists… but yes, I myself am all for having this type of
option in Freeway.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options