Announcement

Collapse
No announcement yet.

Adding image to homepage

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

    Adding image to homepage

    Hi,

    I'm trying to figure out how to add an image to the homepage above my introductory text. This is an issue because I don't yet understand the way actinic is coded.

    This is the code for the centre section of the page that holds all of the content:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22FragmentAnchor%22%20%2f%3e%20!=%20%22%22">
    <a name="<actinic:variable name='FragmentAnchor' />"></a>
    </actinic:block>

    <actinic:block if="%3cactinic%3avariable%20name%3d%22FragmentImageFileName%22%20%2f%3e%20%21%3d%20%22%22">
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentImageALink%22%20%2f%3e" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToURL%22%20%2f%3e" >
    <a href="<actinic:variable name="FragmentLinkedItemID" />">
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToProduct%22%20%2f%3e" >
    <a href="<Actinic:Variable Name="SearchCGIURL"/>?PRODREF=<actinic:variable name="FragmentLinkedItemID" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<Actinic:Variable Name="ShopID"/></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e">&amp;NOLOGIN=1</actinic:block>">
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToSection%22%20%2f%3e" >
    <a href="<Actinic:Variable Name="SearchCGIURL"/>?SECTIONID=<actinic:variable name="FragmentLinkedItemID" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<Actinic:Variable Name="ShopID"/></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e">&amp;NOLOGIN=1</actinic:block>">
    </actinic:block>
    </actinic:block>

    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentImageALink%22%20%2f%3e" >
    </a>
    </actinic:block>
    </actinic:block>

    <h1><actinic:variable formatting="font(Color|333333)" encoding="actinic" name="FragmentTitle" /></h1>
    <p><actinic:variable Name="FragmentText"/></p>

    Is anyone able to spare a moment to help me by telling me where the code for the image should go and what it should be? Usually, I'd just pop an <img src=""> into my usual html code.

    Thank you.

    Vicki

    #2
    The simplest way would be to add a text only fragment to your homepage and then place your html code for the image in the fragment as per:
    !!<
    html code here...
    >!!

    Comment


      #3
      Thank you for replying - that makes sense, but I'm afraid I am totally in at the deep end and don't even know how to add a text fragment. If I add another instance of <p>FragmentText</p> it adds the main text that was entered into the content section of actinic again!

      Sorry to be completly new - I've looked through the guide and advanced guide and it's not really helping.

      Comment


        #4
        Tutorial about brochure pages and fragments on my site, suggest you have a read before you do anything else - http://www.websitedesigned.co.uk/actinic-tutorials.htm - you are right on the edge of screwing your site up if you continue.

        Comment


          #5
          Originally posted by leehack View Post
          Tutorial about brochure pages and fragments on my site, suggest you have a read before you do anything else - http://www.websitedesigned.co.uk/actinic-tutorials.htm
          Thank you! I've been scouring the web for something like this, and didn't see this come up. Much appreciated.

          Comment

          Working...
          X