This topic is locked

Link to itself

10/26/2007 11:56:28 AM
PHPRunner General questions
O
osluk author

See this post

http://www.asprunner.com/forums/index.php?...ost&p=22637
I have created with help of Jane / Sergey a cool link to the view form.
I need in the view form the whold field to show how do i made the custom code only apply to the list not view form
Thanks again for the help

Chris

Sergey Kornilov admin 10/26/2007

You can modify this code to behave differently depending the current page name.

PHP variable $_SERVER['PHP_SELF'] stores the name of the page executed:

if (substr($_SERVER['PHP_SELF'], "view_")>-1)

{

// do not truncate

}

else

{

// truncate

}
O
osluk author 10/27/2007

Thanks Sergey

I just need to work out how to implement this.
Here is what I have.
http://www.bordeauxreport.com/db-2007/view...+Bottle+Note+BR
Now the idea is that if you are interested in a particular wine and like the look of the tasting note you click on read more and in the View page you can see the complete tasting note.
Unfountunately this field also has the read more link.
So I need to understand how to limit the read more function just to List and not to the View page.
Cheers Chris

You can modify this code to behave differently depending the current page name.

PHP variable $_SERVER['PHP_SELF'] stores the name of the page executed:

if (substr($_SERVER['PHP_SELF'], "view_")>-1)

{

// do not truncate

}

else

{

// truncate

}
Sergey Kornilov admin 10/27/2007

Just use the code I posted.

O
osluk author 10/29/2007

Thanks Sergey
I have aded the code to the custome field.

This does not seem to work.

Also tried adding to the top of the View page this does not work either.
If this is not correct where shoul it be added.

Does it need altering in any for my data or variables





Just use the code I posted.