Announcement

Collapse
No announcement yet.

images not working while logged in

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

    images not working while logged in

    Hi,

    I have made my own nav bar with links to pages such as home, contact, links. I also have made my own section pages. All of these are in the root.

    When logged into the shopping part, if you go to any of these pages the images do not work.

    Is there a solution for this apart from hard coding the absolute URLs? (I really want to avoid this).

    I was thinking to put these pages that were in the root inside the acatalog folder? Would there be any problems if I did this? I can't see any except them being written over if another product page had the same name. But I would still need to hard code the absolute urls in the home page, but I guess it's better just having to do the one page.

    Sam

    #2
    The other thing I don't get which is related I suppose, is when you log in, you are taken to this page:
    cgi-bin/bb000021.pl

    On this page is the buyer and account name and logout link with a welcome message. Similarily to the above my style sheet is not linked to properly, because its pointing to just stylesheet.css, but this page is in the CGI-BIN so it needs to be ../stylesheet.css, but when I do that and update the website from actinic it says
    c:\program files\actinic v7\sites\site1\../stylesheet.css was not found.
    and then says

    error generating html pages
    and then i get this

    Warning: The HTML templates specify source files (with "SRC=" commands) that reside in directories other than the acatalog directory on the web site. Actinic can not handle these files and they are being omitted from the list of files to upload.

    No source files in the templates should have a path. Store them in the site specific directory locally, and they will be uploaded to the Actinic web directory.
    should the stylesheet link also be absolute? It just seems crazy to have to do absolute links everywhere.

    But if this is the only option, tell me and I'll do it. Otherwise, any other ideas?

    Sam

    Comment


      #3
      The golden rules for ensuring things work when you are logged in are:

      1) Ensure that the line
      <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>
      is in your store layout templates (e.g. Act_Primary.html) just under the <title></title> tags.
      In your brochure page layout templates (e.g. Act_BrochurePrimary.html) the line should be
      <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF" FORCED=NETQUOTEVAR:BASEHREFFORCED/>

      2) Ensure that all links which you have manually entered into the site templates are of the following format:

      http://your.URL/cgi-bin/ss00000x.pl?SECTIONID=Section%5fPage%2ehtml&NOLOGIN=1

      Where:
      · http://your.URL/cgi-bin is the URL of your CGI-BIN
      · ss00000x.pl is the name of your search script with the 'x' replaced with your CGI ID number
      · Section%5fPage%2ehtml is the filename of your desired page. Note that you have to encode any non-alphanumeric characters so an underscore '_' becomes '%5f' and a full stop '.' becomes '%2e'.
      · &NOLOGIN=1 is an essential thing to add to the end of the URL to order to bypass the login page

      It's a pain to do, but it means the links will work for both logged-in and non logged-in and it will get rid of the SRC= errors you are getting.

      Finally...

      The reference to the stylesheet in the templates should just be:

      <LINK REL=STYLESHEET HREF="stylesheet.css">

      i.e. put your custom stylesheet in the 'Site1' folder. It will be uploaded to the 'acatalog' folder - but it will avoid future issues.

      Comment

      Working...
      X