Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Trouble implementing custom tag

Posted on 2010-09-09
7
Medium Priority
?
327 Views
Last Modified: 2012-05-10

I'm trying to implement this... http://developer.fusium.com/tools/ses.cfm seems pretty straight forward but I'm just having some trouble getting it to work.

Basically, I downloaded the sesConverter.cfm file to my Includes/Functions directory.  

In my included header, I added:

<cfoutput>
<!--- For SES Converter --->
<cfif isDefined("variables.baseHref")>
    <base href="#variables.baseHref#">
</cfif>
</cfoutput>

And in my pages I included:

<!--- ses stuff --->
<cfset SESdummyExtension = ".cfm">
<cfset SESrBaseName = "baseHREF">
<cfinclude template="../Includes/Functions/sesConverter.cfm">


Then I'm just using regular href links:

<a href="details.cfm?listing_id=#listing_id#" target="_blank">VIEW LISTING</a>


What am I missing here?  My ? are not being converted to /.
0
Comment
Question by:MFredin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 2000 total points
ID: 33641326
you're looking at it backwards...

sesConvertor doesn't change your url - it simply parses a friendly url back into a standard url

you need to rewrite (all of) your urls in code to

details.cfm/listing_id/#listing_id#.html

and sesConvertor parses it to

details.cfm?listing_id=#listing_id#

so that it works with your webserver

0
 

Author Comment

by:MFredin
ID: 33641681
oh OK.  so i write my urls as search engine friendly such as details.cfm/listing_id/10 and sesConverter knows how to parse that info and displays the page just like I was using details.cfm?listing_id=10 ??

That makes sense and it's working now... but one issue.  It's screwing with my relative paths.  For example, the patch to the logo at the top of the page is ../Images/logo.jpg.  Since I was always only working 1 directory deep, this worked fine.  Now that I am using / in the url, the system things things are many directories deep.  Will I have to use absolute paths now or what would be the best way to work this out?

Thanks!

0
 
LVL 36

Expert Comment

by:SidFishes
ID: 33641736
according to the docs

"SES URLs will not work unless you use the basehref tag. BASEHREF is not a CF tag, it's standard HTML.

>>>SES URLs mess up your relative links when this tag is not used. "<<<

so it should work (but I've not tried it)

but seems like it from this

http://www.codeodor.com/index.cfm/2007/4/6/Did-you-know-about-the-base-tag/1101
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

Author Comment

by:MFredin
ID: 33641838
oh, very nice.  when I added the base href tag, text that doesn't have a specific font-size assigned to it ballooned up to a much larger font size.  Any idea why or how to fix that?
0
 
LVL 36

Expert Comment

by:SidFishes
ID: 33642122
hmm..odd.

perhaps add your default font size to body in css


body {
font-size:12pt;
}

0
 

Author Comment

by:MFredin
ID: 33642139
tried that and no luck
0
 
LVL 36

Expert Comment

by:SidFishes
ID: 33642186
Can't see how it's related to the sesconverter problem except that it must be due to a path issue (sesC doesn't do anything to styles)

are you defining all your css in an external file? Might try an absolute path to that css file

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question