Hello, so I know how to fix this problem, but I don't understand why it happens. I also looked at this older thread that was kind of helpful, but its not clear to me why I could be having this issue with my NEWS module. http://forum.cmsmadesimple.org/viewtopi ... re#p273207
So I find that sometimes when creating templates, or a style sheet, I have to either add or remove the backslash from the path to whatever image in order for it to show
(i.e. /uploads/images/this.jpg) or (i.e. uploads/images/this.jpg)
But now, when I am adding news articles {news}, and if I add an image to the content, it will not show, so I have to uncheck the "Use WYSIWYG editor" and manually add a "/" before the uploads/images/etc... image path
...any ideas why this happens?
[SOLVED] I have to manually remove backslash - NEWS Module
- fearmydesign
- Power Poster
- Posts: 363
- Joined: Sun Feb 28, 2010 10:54 pm
[SOLVED] I have to manually remove backslash - NEWS Module
Last edited by fearmydesign on Fri Mar 30, 2012 9:30 pm, edited 1 time in total.
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: I have to manually remove backslash - NEWS Module - why?
check your config.php and reduce it to only the required lines as described in doc/CMSMS_config_reference.pdf
- fearmydesign
- Power Poster
- Posts: 363
- Joined: Sun Feb 28, 2010 10:54 pm
Re: I have to manually remove backslash - NEWS Module - why?
This is not my problem, my paths on the config file are setup correctly... maybe I was vague in my explanation.staartmees wrote:check your config.php and reduce it to only the required lines as described in doc/CMSMS_config_reference.pdf
When I add images to my pages, it works fine, it adds the image like this:
Code: Select all
<img src="uploads/images/etc....>
Code: Select all
<img src="uploads/images/etc....>
Code: Select all
<img src="/uploads/images/etc....>
Thanks for your help
Re: I have to manually remove backslash - NEWS Module - why?
You do have the {metadata} tag in the template, right?...
- fearmydesign
- Power Poster
- Posts: 363
- Joined: Sun Feb 28, 2010 10:54 pm
Re: I have to manually remove backslash - NEWS Module - why?
Actually not for my NEWS template. I am using the AutoPilot metatag creator here: http://www.i-do-this.com/blog/48/Put-yo ... -autopilotDr.CSS wrote:You do have the {metadata} tag in the template, right?...
So is this what's affecting it? not having the {metadata}?
Thank you
- fearmydesign
- Power Poster
- Posts: 363
- Joined: Sun Feb 28, 2010 10:54 pm
Re: I have to manually remove backslash - NEWS Module - why?
By the way, this is the page... the image is showing in the content right now because I added the "/" before uploads...
http://www.granitekitchencountertopsva. ... -rock.html
http://www.granitekitchencountertopsva. ... -rock.html
Re: I have to manually remove backslash - NEWS Module - why?
By default the {metadata} tag pulls the <base href=*********> into the head so it has a reference for things like images in pages allowing them to use relative URLs...
- fearmydesign
- Power Poster
- Posts: 363
- Joined: Sun Feb 28, 2010 10:54 pm
Re: I have to manually remove backslash - NEWS Module - why?
Got it, thanks.Dr.CSS wrote:By default the {metadata} tag pulls the <base href=*********> into the head so it has a reference for things like images in pages allowing them to use relative URLs...