close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

base ref throwing things off....

Thread began 8/12/2016 10:23 am by Jamie | Last modified 8/17/2016 1:34 pm by Ray Borduin | 121 views | 12 replies |

Jamie

base ref throwing things off....

hey Ray

Just wondering if you wouldnt mind just casting your eye on this issue

Basically, I am creating simple jquery tabbed panels to contain different galleries and it should look and work like this: http://clients.motley.site/sturgess/gallerypage.php

However, on a live page it looks like this http://clients.motley.site/sturgess/gallery/weddings

Now, I have narrowed it down to the fact that on the live page I use <base href="http://clients.motley.site/sturgess/" >. If I remove the base ref, I then lose all styling etc. on that particular page as well as the mod rewritten links

What can I do to get round this for the gallery pages?

Cheers

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

Put the full url in the base href like:

<base href="http://clients.motley.site/sturgess/gallerypage.php">

Are these links to the same page with htaccess redirects? It looks like totally different pages with different html and css when I view the source. Can I see an example without the base tag that works?

Sign in to reply to this post

Jamie

they are different pages...the first one being how it should look and work, the 2nd one being the 'live' version

Have tried using a base ref <base href="http://clients.motley.site/sturgess/gallery_s.php"> (and that is cunrrenlty what its set to (http://clients.motley.site/sturgess/gallery/weddings) as its a mod rewritten page and that is the actual file

I tried <base href="http://clients.motley.site/sturgess/"> and also <base href="http://clients.motley.site/sturgess/sturgess/weddings"> where weddings is returned using <?php echo($PageContents->getColumnVal("Permalink")); ?> and both ways show the page with no formatting, images etc: http://prntscr.com/c603pt

Sign in to reply to this post

Ray BorduinWebAssist

Are you sure the page works without the base href? I feel like that shouldn't be the issue.

Sign in to reply to this post

Jamie

with no base ref, still no styling, formatting or images.

I spent all day on Friday testing different blocks of code to try and work out why all the tabs are being populated with page contents.

As an example, heres the basic page (not the live version) without the base ref http://goo.gl/sO3ii4 and this is the same page with the base ref added http://goo.gl/oLlX4D - as you can see, in the latter its adding the pagecontent into the tabs somehow :S

Sign in to reply to this post

Ray BorduinWebAssist

Does it all work when going to the page directly without mod rewrite?

Sign in to reply to this post

Jamie

if the basref is set to http://clients.motley.site/sturgess/gallery_s.php then yes but not f baseref is set to ttp://clients.motley.site/sturgess/

Sign in to reply to this post

Ray BorduinWebAssist

The base href should be the full url to the page that would appear if you didn't use a mod rewrite. It basically tells the page what the relative location of the page is when it can't get it from the url because of the mod rewrite so you can still use relative paths for images and css. The base href should include a page name.

Once it works properly with the actual page and the base href is pointing to the page, then the mod rewrite shouldn't break anything. I'd start by getting it all working without the mod rewrite or base href. Then add the base href and then add the mod rewrite. I don't feel like the issue is with the base href... it is just confusing matters.

Sign in to reply to this post

Jamie

OK have set it up at its basic and it works here without mod rewrite or base href:
http://clients.motley.site/sturgess/gallerypage.php?ID=1

I have commented out the mod rewrite but as soon as I add a base href eg http://clients.motley.site/sturgess/gallerypage.php or http://clients.motley.site/sturgess/ it causes the issue to happen :(

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to play around with it. That shouldn't happen. If I could get FTP access I'll play around with it and see if I can figure out what is going on.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...