Gossamer Forum
Quote Reply
different add.html
Hi Andy,
I tried your code, you gave me for google page rank.
I just want to show the URL field in some categories

<%if Full_Name contains "Webtipps"%>
<div class="row required clear">
<label for="URL" class="name">URL: <span>*</span></label>
<div class="value">
<input type="text" id="URL" name="URL" value="<%if URL%><%escape_html URL%><%else%>http://<%endif%>" class="text" />
</div>
</div>
<%endif%>

But It does not work. Did I miss something?
Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] different add.html In reply to
Hi,

I'm confused as to why you are trying to show the pagerank on the forms? :P

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] different add.html In reply to
Hi Andy
nothing to do with page rank. Just this line was a suggestion from you to show page rank only in some categories

<%if Full_Name contains "Webtipps"%>

What I'm trying with the code above is to show only in the main category "Webtipps" and it's subcategories the URL Field in add.html.

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] different add.html In reply to
Hi,

Ah, ok. Well - you won't really be able to do that - as Full_Name doesn't exist in the include_form =)

You would need a global. Something like:

load_cat

Code:
sub {
my $catid = $IN->param('CatLinks.CategoryID')';
if ($catid) {
return $DB->table('Category')->select({ ID => $catid})->fetchrow_hashref;
} else { return }
}

Then call with:

<%load_cat%>

..at the top of include_form.html

Untested, but should then give you access to Full_Name :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] different add.html In reply to
Thats the error, after I added

Bizarre copy of HASH in sassign at /www/htdocs/v030672/cgi-bin/unterricht/admin/GT/Config.pm line 619.

the global above and this code
Code:
<%if Full_Name contains "Webtipps"%>
<div class="row required clear">
<label for="URL" class="name">URL: <span>*</span></label>
<div class="value">
<input type="text" id="URL" name="URL" value="<%if URL%><%escape_html URL%><%else%>http://<%endif%>" class="text" />
</div>
</div>
<%endif%>

Do I have to change something in this global?
Code:
sub {
my $catid = $IN->param('CatLinks.CategoryID')';
if ($catid) {
return $DB->table('Category')->select({ ID => $catid})->fetchrow_hashref;
} else { return }
}

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] different add.html In reply to
Mmm.. try:

Code:
sub {
my $catid = $IN->param('CatLinks.CategoryID')';
if ($catid) {
my $cat = $DB->table('Category')->select({ ID => $catid})->fetchrow_hashref;
returnb $cat;
} else { return }
}

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] different add.html In reply to
Still a "Bizarre copy of HASH" ;-)

Hi Andy it's not so important, when it's to much work.
Perhaps I can find another workaround.
Matthias

Matthias
gpaed.de