Loading...
 
Features / Usability

Features / Usability


Display blog page to fit screen size

posts: 131 Singapore

I wanted to have only the blog page to occupy the whole scrren size so I went to the Admin screen to disabled the display of modules on the left hand column.

So it works....no display of the modules but the blog does not auto adjust itself to fit the whole screen estate. Instead, it just realigns itself to the left hand side of the screen.

Is there any way to tweak the code or templates to achieve a full screen display??

TIA.

--kwow

posts: 4656 Japan

Did you turn off left and right columns on tiki-admin.php?page=features? Down at the bottom, enable "Layout per section" and then go to the "Admin layout per section" page where you can turn off the left and right columns for the blog feature. This makes the blog pages full browser window width.

-- Gary

posts: 131 Singapore

Thanks Gary, it works now. In Tiki 1.9.1, I've selected 'user decides' option (this is different in previous Tiki which is a checkbox option).

One more question. I have turn off the right & left column on Wiki too. However, I have designated my Home page to be one of the home page. Now, all the right and left columns are turned off too when I click on Homepage. Is it possible to have one specific wiki page to display the right and left column??

Sounds impossible, but I asked anyway as you may have a better idea to handle this??

Thanks again.

--kwow

posts: 131 Singapore

I found a way....using modules plugin to display an inline module in the wiki page.

I need som some advise here on the modules plugin parameters as I noticed the modules does not refresh.

Copy to clipboard
{MODULE(module=>,align=>left|center|right,max=>,np=>0|1,args...)}{MODULE}


What does np means and what are examples of args?? I hope on eof them is for refreshing the module....

--kwow

posts: 4656 Japan

> I found a way....using modules plugin to display an inline module in the wiki page.

I was going to suggest that or else a custom template. Using modules would be easier.

> I need som some advise here on the modules plugin parameters as I noticed the modules does not refresh.

What modules are you using? Do you mean they refresh when in side columns but not when in the wiki page? If so, maybe they're being cached. There's a couple of wiki cache settings on Admin/Wiki, but I think they're off by default.

> What does np means and what are examples of args?? I hope on eof them is for refreshing the module....

np means not wiki parsed, and the args depend on the particular module. Look at the wikiplugin files' source code for clues on what arguments to use. This is from wikiplugin_modules.tpl:

Parameters
module name : module=>lambda
align : align=>(left|center|right)
max : max=>20
np : np=>(0|1) # (for non-parsed content)
flip : flip=>(n|y)
decorations : decorations=>(y|n)
module args : arg=>value (depends on module)

-- Gary

posts: 131 Singapore

Thanks Gary for pointing me to the right direction. smile

Using modules worked great and yes, cache has to be set to off. Works great now.cool

The problem now is how to set a fixed spacing between the inlined modules and the first line of text in the page. I have added 5 modules lining up side by side. I have seen two problems:

  1. depending on how many lines the modules expands to (for example since your last visit new module), the first line of text is now next to the last module.
  2. depending on the screen resolution the user is using, you possibly see the same effect as in point 1.


I have tried using the line break (BR) command, but does not work very well either....sad

Do you or anybody out there has a better way in curing this problem??

TIA.

--kwow

posts: 4656 Japan


> Do you or anybody out there has a better way in curing this problem??

Sorry, but I don't have a clear picture of the problem. Are your modules lined up horizontally, or vertically? If you could give a URL to the page or to a screenshot, it'd be easier to get an idea about a solution.

-- Gary

posts: 131 Singapore

>
> > Do you or anybody out there has a better way in curing this problem??
>
> Sorry, but I don't have a clear picture of the problem. Are your modules lined up horizontally, or vertically? If you could give a URL to the page or to a screenshot, it'd be easier to get an idea about a solution.
>

Gary, please view the screenshot at UserPagekwow, it is in the attachment folder since I cannot do a picture attachment to the page. Seems like there is a problem in the Tiki site to attach pictures to the Wiki page (also find that the Quicktags icon do not dispay at all....strange)frown

The first line of text 'This is a test page of sorts.' was set initially to be above Header 1. Ever since I inserted the inlined modules, it screws up the formatting a little. Depending on how long the modules boxes are, the first lne of text will behave and display differently.

Hope you can help.

TIA.

--kwow

posts: 4656 Japan


> The first line of text 'This is a test page of sorts.' was set initially to be above Header 1. Ever since I inserted the inlined modules, it screws up the formatting a little. Depending on how long the modules boxes are, the first lne of text will behave and display differently.

Try adding 8 or 10 line returns between the end of the last module and the first line of text.

-- Gary

posts: 131 Singapore

> Try adding 8 or 10 line returns between the end of the last module and the first line of text.
>

That will probably work. As you also cannot predict how many line the box will expand to, that still leave a certain unpredictability in the display.

Thanks for your advise as always....wink
--kwow