Members: 16,996
Threads: 38,831
Posts: 159,347
Online: 56

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Component Development

Reply
 
LinkBack Thread Tools Display Modes
Old 22.04.2004, 12:13   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 2
vilhelmk is on a distinguished road
Default REQUEST: Include content component/mambot

Does anybody feel like writing the ultimate mambot

Imagine if you via a mambot could include any page from your mamboserver on any page. Or at least any page from your content. Mambobrothers have done something simular with their mosDMlist that lists a subcategory from DocMan.

If any page could be part of any page then you wouldn't have to copy/paste and edit the same info over and over again or write static file for inclusion.

So how about it? The IncludeContent Mambot - who want's to be popular (personally I wouldn't mind - but I'am just a poor graphics guy )

And the next step... build in the IncludeContent Mambot into HTMLarea 3 EXT - then you could just pick you page/element to be included from a list

Makes any sence to anyone???

/Vilhemk/Denmark
vilhelmk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 23.04.2004, 11:49   #2 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 2
vilhelmk is on a distinguished road
Default Re: REQUEST: Include content component/mambot

Why everything so easy in MAMBO ?? (hope it's ok to answer to your own posting btw)

Found a solution that will enable you to use an article as a content item in another article...:

Download and install the mosphp mambot (you'll find it at www.mamboportal.com) and thanks to Andrew Eddie for creating the mambot!!

Then create a code that will select and return a value from a field in the mambo database. (you'll need to know what table and field you are looking for, that's the tricky part. Access the database through phpmyadmin and explore)

Example (you've created content in the introtext part of an article and now I want to use this as an element on another page):
I've checked my database and know that I am looking for the table mos_content, the field is introtext and the id is 3. Inser the follosing code on your page (or article if you will).

Code:
{mosphp} global $database; $database->setQuery('SELECT introtext FROM mos_content WHERE id=3'); $content = $database->loadResult(); return $content;  
{/mosphp}
(the code is an alteration of a code I found at www.mambobrothers.com)

Not very user friendly but it does the job. I wonder how much work it would be to make it a real mambot or a functionality in the HTMLarea 3 ... I guess I'll just have to dream about that

If anybody has a more intelligent way of doing this I would love to hear about it... It is i admit a very limited solution... But it will work great for a table or standard items on an article pages...

/vilhelmk/Denmark
vilhelmk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30.01.2005, 07:08   #3 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 17
Digby007 is on a distinguished road
Default Re: REQUEST: Include content component/mambot

Along the same lines, you mentioned you could add an include file to content areas (!--#include file="includes/custom/details.html" -->). How do I do this?
Digby007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful Links -> Embeding php scripts into mambo content afru Mambo 4.5 'How Do I' Questions 36 20.07.2006 21:44
Hide more content item info on category pages bulldog Mambo 5.0 Wishlist 13 07.05.2005 04:20
Section -> How do I change the default (10) number of content items displayed jukemann Mambo 4.5 'How Do I' Questions 26 28.04.2005 19:11
Access Controls -> Users limited to managing specific content only? hartten Mambo 4.5 'How Do I' Questions 6 28.04.2004 17:16
How to link content items to main menu afru Mambo 4.5 'How Do I' Questions 3 11.04.2004 15:16


All times are GMT +2. The time now is 15:25.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.