Announcement

Collapse
No announcement yet.

How to use Fragment popup and publish to another directory?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to use Fragment popup and publish to another directory?

    Hi Guys,
    Any ideas on this one?
    I would like to have a custom fragment create 'popup' pages (seperate pages) which...and here's the tricky bit....publish to a different directory on the live site.

    Creating the page I think should be relatively easy by changing the layout type to 'popup' but getting it to publish to a seperate defined directory is the bit I'm struggling with. Any ideas?

    p.s Reason for doing this is to to draw the seperate pages into the main templates and randomise the results (done this on a number of my sites but never tried to use Actinic to create the html to be pulled into the random results)

    Regards
    Bangers
    Boxhedge New Media Design
    Design and development solutions for SME's.
    Tel: 0118 966 2786
    Examples of work can be found at http://www.boxhedge.com

    #2
    Not possible using just Actinic. Only way I could think of this would be some server-side PHP that moves the files. It might have to scan the page and fix any relative links as well.

    Maybe easier to leave the pages in acatalog and use .htaccess to redirect to them.

    Or leave in place and create symlinks to them.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Cheers for the reply Norman,
      Thought as much. Only problem with having them publish the acatalog folder is that the php I would use to randomise the results wouldn't discriminate against any .html page so could draw any page in.

      I guess a simpler way to approach it could be to have the popup pages being created to use a different extension such as .htm oppose to .html. The randomising script could then be set to pick from pages using the .htm extension only.
      Is there a way of setting the popup pages to do this automatically?

      Regards
      bangers
      Boxhedge New Media Design
      Design and development solutions for SME's.
      Tel: 0118 966 2786
      Examples of work can be found at http://www.boxhedge.com

      Comment


        #4
        See http://community.actinic.com/showthread.php?t=39263 where I'm creating a unique name for the pseudo popup page. It might be easier to keep these pages .html but give them a unique prefix "page_*****.html" and in the PHP glob for the prefix.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          foreach (glob("page_*.html") as $filename) { echo "<br/>$filename"; }
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Yep that would work, as long as there is a way of selecting the specific pages.
            I'll have a look at the thread.
            Regards
            bangers
            Boxhedge New Media Design
            Design and development solutions for SME's.
            Tel: 0118 966 2786
            Examples of work can be found at http://www.boxhedge.com

            Comment


              #7
              Just had a look at the thread, and using the first part of you "tweak" would work just as I need it to.

              Many thanks Norman,
              Regards
              bangers
              Boxhedge New Media Design
              Design and development solutions for SME's.
              Tel: 0118 966 2786
              Examples of work can be found at http://www.boxhedge.com

              Comment

              Working...
              X