Complex publishing challange :)

76 views
Skip to first unread message

Daniel Petroff

unread,
Jan 21, 2013, 7:06:50 AM1/21/13
to reddot-c...@googlegroups.com
Hi All

We have come across some publishing needs in the new project I am working on and I was hoping to get some advise/thoughts from the group.

I need to be able to remove the file extension from the URLs that are rendered inside pages by navigation manager and any other links such as those inside text fields.
Also I need to remove the first two folders from the same URLs. So, I need something like this "/folder_1/folder_2/folder_3/pagename.htm" to change to "folder_3/pagename"

The folder structure is generated by the publication folders, but I cannot just remove them. They were structured this way to ensure pages and assets go to their relevant folders.

So, any thought? :)

Thanks!
Dan

Hilmar Bunjes

unread,
Jan 22, 2013, 11:01:33 AM1/22/13
to reddot-c...@googlegroups.com
Dan,
Are you using the Delivery Server?
 
Removing the folders from /folder1/folder2/.../folderX to just /folderX is pretty easy if you don't use the Delivery Server: You can just change the (virtual) directory names on the publication packages.
 
If you are using Apache HTTP Server, IIS, or any other webserver as a proxy you could maybe also create rewrite rules in there? In most cases you will need those rules for the 30x redirection of the pages for search machines and bookmarks.
 
Best,
Hilmar
 
-- 
http://www.smartapi.de - Open Source .NET RQL API for Open Text WSM Management Server

Daniel Petroff

unread,
Jan 22, 2013, 11:23:30 AM1/22/13
to reddot-c...@googlegroups.com
Thanks Hilmar,

I looked at that but it only works to change the name of the (virtual) folder, not remove it.
I tried putting in just a space in the name but then the published URL becomes "/ / /folder3/filename.htm"
And that is no good...



Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/aMPMbrd2pbAJ.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

Hilmar Bunjes

unread,
Jan 22, 2013, 11:33:51 AM1/22/13
to reddot-c...@googlegroups.com
Hi Daniel

I looked at that but it only works to change the name of the (virtual) folder, not remove it.
I tried putting in just a space in the name but then the published URL becomes "/ / /folder3/filename.htm"
And that is no good...
 
You can write dots in there which means "stay in the same directory".
 
 
However, the links will show the dots between the slashes as well. This doesn't look very nice but it will work as it should. Maybe you could write a script that changes the "/./" to just "/" if you would like to.
 
Best,
Hilmar

Daniel Petroff

unread,
Jan 22, 2013, 11:49:08 AM1/22/13
to reddot-c...@googlegroups.com
Ah, yes that's right! :)
Didn't think of that.

Now, can you think of a way tiger rid of the file name extensions in the URL but keep them on the file names?
I looked for an option or setting that does it but canny find anything...

Thanks again for your help!
Dan


Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/sCBT89Gp0aQJ.

Hilmar Bunjes

unread,
Jan 22, 2013, 11:56:07 AM1/22/13
to reddot-c...@googlegroups.com
Dan, 
Ah, yes that's right! :)
Didn't think of that.
 
Great it's working :-) 
 
Now, can you think of a way tiger rid of the file name extensions in the URL but keep them on the file names?
I looked for an option or setting that does it but canny find anything...
 
Have you set the extension on the pages directly or on the project variant? If you set it on the pages you'll need do to some RQL (or use sth. like SmartAPI for that) or change this directly in the database.
 
If you have only set it in the project variant (or not at all) you can, as far as I know, set the file extension in the project variant to just a dot ".". This should remove the extensions.
 
Best,
Hilmar 

Daniel Petroff

unread,
Jan 22, 2013, 12:02:03 PM1/22/13
to reddot-c...@googlegroups.com
I'll give it a shot! :) thanks!
Seems like . is gonna be my favourite punctuation mark now!

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/eVUP41WNGFgJ.

Hilmar Bunjes

unread,
Jan 22, 2013, 12:04:53 PM1/22/13
to reddot-c...@googlegroups.com
Hi,
 
I'll give it a shot! :) thanks!
Seems like . is gonna be my favourite punctuation mark now!
 
 
yeah, I think unfortunately they haven't set the text color to red on those input fields ;-)
 
Best,
Hilmar 

Daniel Petroff

unread,
Jan 22, 2013, 12:20:32 PM1/22/13
to reddot-c...@googlegroups.com
This is almost working! But I guess I will not get what I need without some hardcore RQL or something like that.
It's removing the file extensions and rendering the URLs exactly as needed but its also removing the file extensions from the file names themselves. Which is logical but not what we need...


Sent from my iPhone

On 22 Jan 2013, at 16:56, Hilmar Bunjes <hilmar...@erminas.de> wrote:

--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/eVUP41WNGFgJ.

Hilmar Bunjes

unread,
Jan 23, 2013, 3:15:35 AM1/23/13
to reddot-c...@googlegroups.com
Hi,
ok, then I do not understand what you want to accomplish.

Do you want to publish the files as *.htm but the links just go to *? I do not think this is possible.

Is there a problem publishing the files without the .htm at the server which delivers the pages? You could set the default type in Apache as text/html in the httpd config:

DefaultType text/html

I expect that the CSS and JS files (if you have them in the CMS) have a filename given at the pages?

Best,
Hilmar
Reply all
Reply to author
Forward
0 new messages