Loading...
 
Features / Usability

Features / Usability


Embed in a specific blog

posts: 17 United Kingdom

Hi!

I need to embed some code in a specific blog:

It is common for bloggers to need to add buttons and so on... yet I see no means for doing so.
(I suppose that it is not possible to create a module that appears in a column for one specific blog.)
Is there any means of achieving this?
I have tried to think of a way of doing this via assigning a template to the blog, then modding the template, but then anyone chosing the same template would get the same code, which must not happen.
So, I am stuck.
Advice most appreciated!

John

posts: 4657 Japan

> Hi!
>
> I need to embed some code in a specific blog....

The top of the page can be modified for a specific blog (see blog heading textarea — which shows the default HTML and Smarty template syntax — on tiki-edit_blog.php). Could the buttons, etc. go here?

-- Gary

posts: 17 United Kingdom

> > Hi!
> >
> > I need to embed some code in a specific blog....
>
> The top of the page can be modified for a specific blog (see blog heading textarea — which shows the default HTML and Smarty template syntax — on tiki-edit_blog.php). Could the buttons, etc. go here?
>
> — Gary
>
Hi Gary, and thanks for coming back to me on this. Studying tiki-edit_blog.php has been an education for me; I had got cosy with modding the tpl files, now I begin to see how TW works, which is oh so very more complex. I hadn't realised - because I hadn't thought it through - that adding code for one blog and not others, would require me as admin having to select it.

It took me a while to understand why you suggested tiki-edit_blog.php - I now see how it is probably the appropriate place to start, but as a non-coder, I think it beyond me.

Thanks for good advice, but this additional function will have to be given a miss.

Cheers!
John

posts: 4657 Japan

...
> Hi Gary, and thanks for coming back to me on this. Studying tiki-edit_blog.php has been an education for me; I had got cosy with modding the tpl files, now I begin to see how TW works, which is oh so very more complex. I hadn't realised - because I hadn't thought it through - that adding code for one blog and not others, would require me as admin having to select it.

Well, it'd have to be done by someone with permission to edit/create a blog, because that's the page the header-editing textarea is on. I imagine the difficulty for a non- or quasi-coder would depend on what the buttons are expected to do, etc.

> It took me a while to understand why you suggested tiki-edit_blog.php - I now see how it is probably the appropriate place to start, but as a non-coder, I think it beyond me.

That's definitely the easiest place to customize a specific blog, as it can be done via the browser and the Tiki interface.

-- Gary