Announcement

Collapse
No announcement yet.

dynamic sections query

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

    dynamic sections query

    something i'd like to include on every page, is a panel containing things such as 'coming soon', 'latest items' and such.

    i understand that there are out of the box solutions for these things somewhere, but they dont really cover the functionality i need.

    these boxes need to hold multiple items, very much like a templateless brochure page, included in every page.

    now i'v got so far as stripping out the code on a brochure template, and creating a looping template for each item to be included in this, but there is no way to put such a thing into every template.

    the code for my little include, (that i need to be built in actinic, using the brochure pages interface) has nothing extra, and once it's been built, it resides in the site root, but no amount of fiddling can give me the feature i need. errors ahoy.

    um, its kinda hard to explain.

    i'm basically, building an include, from templates, externally.

    sound about right?

    is this even possible or am i barking up the wrong software?

    #2
    Sorry for the questions on this, but need to confirm what you are actually after - so pls forgive.

    Is it a case that you want to have a single source file that will not change from page to page (i.e. static once uploaded), but you want to be able to change the content of this source file and when you next upload, have this inserted into all of the pages of the site?

    If so, then the way to achieve it might be one or many, with the following being one of them....

    Within the Act_Primary templates then add a

    NETQUOTEVAT:Include myfilename.txt

    The position where you place this above code is where the code you are about to place into it, will be shown within the site.

    Then, with in this myfilename.txt you are about to create within your site1 folder, add the panels code and text, images and links you want to appear within it.

    Images should be relative, so best to save them also to the site1 folder and reference just by the filename as opposed to any paths.

    When you preview the site, it will locate the myfilename.txt and insert the code into the position of the template, thus you have one file with which to amend, which is shown across all pages which uses the above NETQUOTEVAR.

    Another option is to code the panels you want into the Act_Primary, and then add a NETQUOTEVAR:Include mypanel01.txt into the first panel, and mypanel02.txt into the 2nd panel and so on, thus giving you a separate text file for each panel content...

    That all said, this is only any good if have understood your need correctly.

    Comment


      #3
      thats neary there. and i think you've raised some usefull points.

      i do currently include files, 3 of them. using customvars.

      i have a brochure page, with fragments in it. i want to include this section on every page. it's called "deals.html" and i'm assuming it'll be saved outside the acatalog folder, when my site is built. This set of fragments is stripped down and very simple. Note, that when i test build, it gives this file the wrong name. for some reason. puts a p, in front of it.

      if i include like this:
      act:inc PreviewHTML\P_Deals.html

      my 'brochure page' generated by actinic is inserted into every catalog page.

      however, i use images in there. and they break. why? becasue they themselves reference images in the wrong place. so, this is generally not a good idea.

      so far, i think that i'm adding this feature to my wishlist. "incidental addins". Just like a brochure page.... built the same way, but insertable anywhere, using a customvar.

      Comment


        #4
        It prefixes the "P" to show it is a preview in the PreviewHTML folder.

        Images are best added in as unique customvars. Also worth checking you have a copy in the PreviewHTML folder

        If you are inserting a HTML file don't forget to strip out the <head> and <body> tags otherwise they will appear twice on the completed page.

        Another solution (depending on what you are trying to achieve) could be to use an iframe insert


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Hi Gabriel,

          I am looking into this for you and will post back with an update at the earliest.

          Comment


            #6
            thanks sumiya

            Comment


              #7
              Hi Gabriel,

              As suggested in the previous posting you can use 'NETQUOTEVAR:INCLUDE myfilename.txt' .The page will be regenerated and uploaded whenever the content of myfilename.txt is changed.

              Comment


                #8
                i cannot use that method, since my includes would have to be generated by hand.

                the thing i really need, is a brochure page inserted into the code, with a netquotevar, or a customvar.

                now, i'v actually hacked my way around this in actinic, with ugly grep and includes, but i really would like to see this feature in the next version.

                i think it should be called 'Crowes includes' since i'm so vain.

                Comment

                Working...
                X