Is there a simple way to display content elsewhere - <?= $theme->credits() ?>

hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 572
Posted: Thu, 2010-03-18 17:15

If I wish to display content elsewhere can I use this:

<?= $theme->credits() ?>

fx:
The block language flags. I want this to show up inside content. But I don't want to move the module to my theme. Can I call the block some how?

If using this: <?= $theme->credits() ?>
what should it look like?

all the best
HB - http://www.image.agentura.dk

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2138
Posted: Thu, 2010-03-18 18:24

it just gives you back list of <li> elements

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 572
Posted: Thu, 2010-03-18 19:19

So what you say is that I have to port entire modules to the theme?? and have code x 2

all the best
HB - http://www.image.agentura.dk

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2138
Posted: Thu, 2010-03-18 20:54

it is part of the theme.
you can move this line anywhere in the page along with <ul> wrapper

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 572
Posted: Thu, 2010-03-18 21:21

I have no idea what your saying serge. No offence but could you try to be specific. One answer every 24 hours is not getting me far if it's shady:

Quote:
<ul>
and what goes here and do I port the module or call from the module install?
</ul>

There is no doc on Kohana and how things work. Language flag is an example ... I want a number of blocks in front and nothing works in the G3 structure, for me at least. So what's the story?

all the best
HB - http://www.image.agentura.dk

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2138
Posted: Thu, 2010-03-18 22:05

I am not on support team, so I can provide some help when I have some free time only.

your question was technical and specific so I gave you technical and specific answer.

I do not know what customizations you made to default theme, so I will give you an example based on Wind theme...

Under /themes/wind/views/ there is a file page.html.php
In it search for <?= $theme->credits() ?> you were asking about.
you would find it in the footer of the page under <div id="g-footer"
it is optional so it can be controlled from theme settings and the full thing look like this

<? if (module::get_var("gallery", "show_credits")): ?>
  <ul id="g-credits" class="g-inline">
    <?= $theme->credits() ?>
  </ul>
<? endif ?>

Theme credits are nothing to do with "The block language flags" you've mentioned.
If you want to move credits displayed, just cut and paste it in appropriate place in the file.

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 572
Posted: Thu, 2010-03-18 22:19

No forget about credits....

This is what I want

1) display language flags (block) inside a view in my theme
Q: what is the code to drop the html there

2) Display Tag Cloud Block same
Q what is the code

3) Display Image Block in view
???

Quote:
<div id="go-get-a-block">
<? now I have no idea what to put here;:;: so I need some direction ?>
<ul cause I spent way to much time trying to figure this out>
<and I am lost - so what code inside front.html.php that page.html.php calls>
<to display the above blocks? or just one of them for example>
</div>

How do I call a sidebar block to my view but leave the block code in it's module?

Again this is not about credits - I assumed the code I need is similar

all the best
HB - http://www.image.agentura.dk

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2138
Posted: Fri, 2010-03-19 01:18

From Theme_View.php the following methods are supported

    case "album_blocks":
    case "album_bottom":
    case "album_top":
    case "body_attributes":
    case "credits";
    case "dynamic_bottom":
    case "dynamic_top":
    case "footer":
    case "head":
    case "header_bottom":
    case "header_top":
    case "page_bottom":
    case "page_top":
    case "photo_blocks":
    case "photo_bottom":
    case "photo_top":
    case "resize_bottom":
    case "resize_top":
    case "sidebar_bottom":
    case "sidebar_top":
    case "thumb_bottom":
    case "thumb_info":
    case "thumb_top":

look for sample implementations in the modules I mentioned earlier.
functions produce content which is then inserted when needed.
Some are implemented in main gallery module.
I hope it will give you an ide where to start.