Loading...
 
Themes

Themes


Re: 2 Questions

United States

> Hi, I "copied-and-pasted" the quick edit module's TPL code onto "tiki-top_bar.tpl" (I have all the UI on the top bar), and my boss wants that particular function only to be accessible from the home page.
>
> So my question: is there a condition/variable I can use to check if the page is the home page (I'm using a Wiki homepage NOT titled "HomePage," and I had no luck trying to use the custom home feature)? I looked around in the code and found things like "$url" and "$homepage," but I don't think I'm fully understanding what these variables stand for.
>

If you're talking about a wiki pages, then you can use the {$page} variable. Try something like:

Copy to clipboard
{if $page eq 'NAME OF YOUR PAGE'} ... show the quick edit box ... {/if}


> Also, my boss wants a limit on the Wiki attachment file size; is there an "admin" solution that I can use without modifying code? If not, what would be a possible solution? Apache config?
>

You can control this from the php.ini file. See this FAQ.

HTH,

-Rick

THANKS!!

> > Hi, I "copied-and-pasted" the quick edit module's TPL code onto "tiki-top_bar.tpl" (I have all the UI on the top bar), and my boss wants that particular function only to be accessible from the home page.
> >
> > So my question: is there a condition/variable I can use to check if the page is the home page (I'm using a Wiki homepage NOT titled "HomePage," and I had no luck trying to use the custom home feature)? I looked around in the code and found things like "$url" and "$homepage," but I don't think I'm fully understanding what these variables stand for.
> >
>
> If you're talking about a wiki pages, then you can use the {$page} variable. Try something like:

>
Copy to clipboard
> {if $page eq 'NAME OF YOUR PAGE'} > ... > show the quick edit box > ... > {/if} >

>
> > Also, my boss wants a limit on the Wiki attachment file size; is there an "admin" solution that I can use without modifying code? If not, what would be a possible solution? Apache config?
> >
>
> You can control this from the php.ini file. See this FAQ.
>
> HTH,
>
> -Rick