• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [SOLVED] I have to manually remove backslash - NEWS Module
PostPosted: Fri Mar 30, 2012 3:09 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
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/viewtopic.php?f=20&t=46446&p=273207&hilit=why+sometimes+I+need+backslash+before#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?


Last edited by fearmydesign on Fri Mar 30, 2012 9:30 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 7:58 am 
Offline
Power Poster
Power Poster

Joined: Wed Mar 19, 2008 4:54 pm
Posts: 504
check your config.php and reduce it to only the required lines as described in doc/CMSMS_config_reference.pdf


Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 8:56 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
staartmees wrote:
check your config.php and reduce it to only the required lines as described in doc/CMSMS_config_reference.pdf

This is not my problem, my paths on the config file are setup correctly... maybe I was vague in my explanation.

When I add images to my pages, it works fine, it adds the image like this:
Code:
<img src="uploads/images/etc....>

but when I add an image to the content on a {NEWS} article that I am writing, it adds the code the same *exact* way:
Code:
<img src="uploads/images/etc....>

...but it doesn't show the image when I pull the article on the site to view. So what I have to end up doing, is going back to that same news article, and *add* a backslash before the uploads like this:
Code:
<img src="/uploads/images/etc....>

So why doesn't this happen with all my other pages...? that's my question.

Thanks for your help


Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 9:00 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11865
Location: Arizona
You do have the {metadata} tag in the template, right?...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 9:05 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
Dr.CSS wrote:
You do have the {metadata} tag in the template, right?...

Actually not for my NEWS template. I am using the AutoPilot metatag creator here: http://www.i-do-this.com/blog/48/Put-your-CMSMS-Metatags-on-autopilot
So is this what's affecting it? not having the {metadata}?

Thank you


Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 9:07 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
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.com/news/3/44/Nature-brings-much-more-than-a-million-years-of-volcanic-rock.html


Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 9:19 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11865
Location: Arizona
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...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: I have to manually remove backslash - NEWS Module - why?
PostPosted: Fri Mar 30, 2012 9:30 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Feb 28, 2010 10:54 pm
Posts: 297
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...

Got it, thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner