Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a link be added to CE

Status
Not open for further replies.

eo

MIS
Apr 3, 2003
809
Hi

CE10. ePortfolio. Branded to fit our corporate website, but the basic layout of ePortfolio remain.

Is it possible to add links (for example URL's) to ePortfolio. And where and how is this done?

Cheers,
Etienne

EO
Hertfordshire, England
 
We modified CE-10 WebDesktp (formerly ePortfolio) to meet our "look and feel" and billingual standards on my current project.

We modified some of the main CSP pages, and used the CMC -> Manage -> Crystal Applications -> Web Desktop section to manage colours, logo, etc.

I think there are some modifed CSP samples on the BO site and on the CE-10 CD.

 
Where, and how would be pretty much wherever you'd like, and how would be using html, asp, csp, javascript, vb script, the point is that it's probably running through IIS, so whatever you want to do.

You can even have links in other websites to reports in CE if you want.

You're probably better off posting specifics.

-k
 
Hi

I have looked at some CSP examples, but all I see if (very loooooonnnnggg) html code. Which page is the default csp main page. We already have one hyperlink on it, maybe I can scrutenize the script of this page, and do similar?
I thought it was C:/Programme Files/Crystal Decisions/Enterprise 10/Web Content/Enterprise10/ePortfolio/en/available.csp...or default.csp



EO
Hertfordshire, England
 
Available.csp is pretty much the "main" page of ePortfolio. And yes, it is either html code or scripting to create html on the fly.

What exactly are you wanting to do?

 
I suppose that you're speaking of eportfolio, so either logon or available would be your target pages.

As others have also suggested, post specifics rather than generic questions, pretty much any website can have links in it, and CE is just another website which happens to also have a proprietary engine if you want to leverage it.

-k
 
Hi

If I look at the URL for CE is
From that I would assume that the CSP page is available.csp, but consultants that initially set up this page places an bespoke imgage on the bottom left of the page, which is also a hyperlink to our corporate website (I think where 'powered by Crystal' used to be).

Whan I view the source code for this page I can clearly see this coding
Code:
<table width="100%">
<tr><td>
	<a href="[URL unfurl="true"]http://www.ashridge.org.uk/"><img[/URL] src="/crystal/enterprise10/ePortfolio/en/images/pb_blue_sml.gif" alt="Powered by Ashridge IS &amp; T" title="Powered by Ashridge IS &amp; T" border=0></a>
</td></tr>
</table>

BUT when I look at the available.csp, I cannot see this coding??

Neither does the logon.csp (as per suggested above). I thus need to understand where this source code is held.

Can anyone help?



EO
Hertfordshire, England
 

In Header.csp there is a function GetPoweredByLogoLink that is called in available.csp and a few other csp files (found using search at the 'en' folder level). Replace the code in here with your own.


 
And that particular URL was probably set in the CMC: Crystal Applications / Web Desktop / Display custom logo at this URL
 
Hi
I found the GetPoweredByLogoLink in header.csp, but am still none the wiser where the original pb_blue.sml.gif is located (which CSP).
Code:
function GetPoweredByLogoLink()
{
	if(GetCachedAdminPref("showpwrby", DEF_SHOW_PWR_BY, "main") == "true")
	{
		return "<a href=\"" + URL_HOME + "\">" + 
		       "<img src=\"" + GetLinkPath() + IMG_POWEREDBY + "\" " + 
		           "alt=\"" + Server.HTMLEncode(L_PWR_BY_CD) + "\" title=\"" + Server.HTMLEncode(L_PWR_BY_CD) + "\" border=0>" +
		       "</a>";
	}
	else
	{
		return "";
	}
	
}
I thought all page designs was by HTML code in CSP pages. Why do the source code and the CSP pages not match? All I want to do is add a link to the area next to the 'Powered By Crystal' logo and link.

EO
Hertfordshire, England
 
The csp pages contain a combination of client-side html and server-side scripting to generate more html. In the code you snipped, pretty much anything not in quotes is either a function (or object method) or a variable. CE seems to capitalize variable names pretty consistently, so IMG_POWEREDBY is a variable. Search for it. If you don't find it in the current file (header.csp) follow the trail of #includes: see customize.csp. In that file you will find var IMG_POWEREDBY="images/pb_blue_sml.gif";. However, you also have GetLinkPath() concatenated to the front of that path. That will return your crystal web site in IIS, so you'll have a full path like
Code:
C:\Program Files\Crystal Decisions\Enterprise 10\Web Content\Enterprise10\ePortfolio\en\images\pb_blue_sml.gif.
 
Try here:
C:\Program Files\Crystal Decisions\Enterprise 10\Web Content\Enterprise10\ePortfolio\en\customize.csp

Code:
// images
var IMG_LOGO_PREFIX="images/eportfolio_";
var IMG_EXPRESS_LOGO="images/eportfolio_express.gif";
var IMG_POWEREDBY="images/pb_blue_sml.gif";

If you want to add a link next to the logo you can just hack in the html in the function you snipped.

Kingfisher [CECP]
 
Hi

In customize.csp, I included a link to my new image:
[code}
// images
var IMG_LOGO_PREFIX="images/eportfolio_";
var IMG_EXPRESS_LOGO="images/eportfolio_express.gif";
var IMG_POWEREDBY="images/pb_blue_sml.gif";
var IMG_AIMS ="images/aims.gif";
[/code]
I am sure this is npw called somehere else to display.

Also what is meant by "just hack in the html in the function you snipped"

EO
Hertfordshire, England
 
If that is the only code you changed, you won't see the image displayed - if that is your question. You might want to review all of the posts above.

And, please, eo. Tell us what you are trying to accomplish. You have been asked this more than once, yet you continue to dribble in bits and pieces of code and question. It is getting rather frustrating trying to help that way.
 
Hi

I'll attempt to explain!!!
We changed replaced the standard logo, which serves as 'Powered By Crystal' with a link to the BO website (pb_blue_sml.gif) with a company logo, and replaced the link with one to our corporate website.

I am attempting to add ANOTHER, next to that logo/link which will direct users to another location (URL). I am trying to establish how the coding in CSP pages in EN folder in the ePortfolio have been put together. So that I can add said new logo/link.

The thing that I could not/ cannot get my head around are the <%...%> bits, which I assume is some sort of dynamic scripting. I however figured out that if I use standard HTML code outside these areas, I can obtain the same result, which is musch simpler.

New code therefore will look something like (in available.csp)...
Code:
%>
<table width="100%">
<tr><td>
	<%= PwrByLink %>
</td>
<td>
<a href="[URL unfurl="true"]http://www.blah.com/"><img[/URL] src="/crystal/enterprise10/ePortfolio/en/images/aims.gif" alt="Powered by Ashridge //IS &amp; T" title="Powered by Ashridge IS &amp; T" border=0></a>
</td></tr>
</table>
<%
The existing PoweredBy link still remains
Code:
<%= PwrByLink %>
, and the new link is in the next table
Code:
<a href="[URL unfurl="true"]http://www.blah.com/"><img[/URL] src="/crystal/enterprise10/ePortfolio/en/images/aims.gif" alt="Powered by Ashridge //IS &amp; T" title="Powered by Ashridge IS &amp; T" border=0></a>

The problem was I could not understand why there was a difference between the view source code, and the available.csp. I also could not understand if available.csp contained the link <%= PwrByLink %>, it must have called that from soemwhere, and if so, from where, I nedded to find the source, make a similar adjustment, and work my way back to available.csp.
Now that I realised that I do not have to worry about such dynamic scripts if its outside <% and %>, no worries.

Now this whole explanation, is in my mind capturted very well with the initial question "Is it possible to add links (for example URL's) to ePortfolio. And where and how is this done?"




EO
Hertfordshire, England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top