Topic: How to wrap other URL into MODx?  (Read 12560 times)

Pages: [1] 2  All   Go Down

#1: 16-Feb-2006, 04:08 PM

Guest
Is there an easy way to do a wrap in MODx of other URL?

Let say I have a forum running on http://localhost/forum but I want that to look like part of MODx.

So I like to see "Forum" will be list on the navigation menu and when the "Forum" link is click it will show the forum as part of the main MODx site not a completely separate forum site.

Any tips would be appreciated.

Thanks

#2: 16-Feb-2006, 04:28 PM

Emeritus
Djamoer
Posts: 1,495

No one can limit a man other than the man himself.

WWW
Ehmm...

Do you want the link in the address bar to be the same one with MODx, or you want the forum to be displayed inside MODx template?

If you just want a link redirection, then you can use WebLink on MODx, to have forum.html to be directed to forum subfolder for example.
If you want to display the forum inside MODx template, than you need to cacth the output from the forum and display it inside MODx using snippet or placeholder maybe.

Btw Chanh, I do realize that you're looking for the best coupling between community system and content manageemnt system. Is that right?
I'm interested to help you out, if you want to.

Sincerely,

#3: 16-Feb-2006, 04:34 PM

Testers

banzai
Posts: 880

MODx Italia

WWW
I do not know if I have understood all, but i think you simply need to create a new page, called 'forum' , then put inside it, a wrapper snippet.
MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#4: 16-Feb-2006, 04:58 PM

Guest
Yes, I want the forum to show inside MODx.

I know how to create a page but I don't know how to wrap it inside MODx.

Basically I just want the forum look like part of MODx not a separate site.

You can see http://chanh.blogdns.com and when you click on "Forum" link it take you to a total different site outside of MODx.

#5: 16-Feb-2006, 05:06 PM

Coding Team

garryn
Posts: 1,391

WWW
Hi chanh,

If I was doing it, I would create a weblink that points to your forum and then customise your forum template to look like your modx site (rather than the other way round)

It's only a suggestion as I've not installed a forum on my site yet so can't give you any first hand experience.

Hope that helps, Garry

#6: 16-Feb-2006, 05:09 PM

Testers

banzai
Posts: 880

MODx Italia

WWW
If you only need an i frame ( to use in a page called 'forum') you can use wrapper snippet.
If you want to import only content of external link you can use a grab snippet.

* Grab.txt (0.29 KB - downloaded 587 times.)
* Wrapper.txt (3.57 KB - downloaded 593 times.)
MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#7: 16-Feb-2006, 05:10 PM

Testers

banzai
Posts: 880

MODx Italia

WWW
Hi chanh,

If I was doing it, I would create a weblink that points to your forum and then customise your forum template to look like your modx site (rather than the other way round)

It's only a suggestion as I've not installed a forum on my site yet so can't give you any first hand experience.

Hope that helps, Garry

This is another - more clean - solution Wink
MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#8: 16-Feb-2006, 05:58 PM

Guest
Well, the Wrapper is kinda work, maybe! but the Grab would work if not for this bug

: Table 'chanh_zmodx.smf_sessions' doesn't exist
/home/chanh/public_html/smf/Sources/Load.php
1867

Doing what garrym suggest would be ok except that it means more template to do and to maintance.

Thanks for the suggestions

#9: 16-Feb-2006, 06:20 PM

Testers

banzai
Posts: 880

MODx Italia

WWW
Oops! i forgot View Port Template Variable - native alternative to wrapper in modx.
MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#10: 16-Feb-2006, 09:08 PM

Guest
Where can I find "view port"?

Thanks

#11: 16-Feb-2006, 09:19 PM

Foundation

rthrash
Posts: 11,351

WWW
It's one of the display widgets on TVs. A bit of a mystery as to how exactly it works, but not too bad in a pinch Wink
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#12: 16-Feb-2006, 09:22 PM

Guest
Is there a sample on how to do that?

Thanks

#13: 16-Feb-2006, 10:13 PM

Foundation

rthrash
Posts: 11,351

WWW
Honestly your best, most reliable way to do it unfortunately is creating a custom theme for SMF.
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#14: 17-Feb-2006, 12:44 PM


dernier_recours
Posts: 83

Once, I used a scalable iframe trick:

Between <head> and </head>, add:

Code:
<script type="text/javascript" language="JavaScript">
<!--
function calcHeight()
{
   var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; //find the height of the internal page
   document.getElementById('the_iframe').style.height=the_height; //change the height of the iframe
}
//-->
</script>

Into the document:
Code:
<iframe src="for_example/punbb/index.php" id="the_iframe" onLoad="calcHeight();" width="600px" height="1" name="the_iframe" scrolling="no" frameborder="0">If you see this text your browser didn't support iframes. so see the page click on at the fowllowing link. <a href="link to the forum" target="_blank">Forum</A></iframe>
at the edge of dawn,
you ask yourself if your shadow did follow you down
all night long

#15: 17-Feb-2006, 02:25 PM

Guest
It seems to only work in IE but not in FF until I make the height tall enough for the page then something show up.

Thanks

#16: 17-Feb-2006, 02:50 PM

Guest
Ok, I manage to use View Port to wrap SMF around.  It is not very pretty right now but just my sandbox on proof of concept.

http://www.chanh.blogdns.com/modx/WrapperSMF.html

Please take a look and tell me what you think.

Thanks

#17: 23-Mar-2006, 07:10 PM

Emeritus
Djamoer
Posts: 1,495

No one can limit a man other than the man himself.

WWW
Call the snippet uncache [!snippet_name!], then refresh your site. Wink

#18: 24-Mar-2006, 01:57 AM


OncleBen31
Posts: 283

I believe in MODx!

WWW
Ok, I manage to use View Port to wrap SMF around.  It is not very pretty right now but just my sandbox on proof of concept.
http://www.chanh.blogdns.com/modx/WrapperSMF.html
Please take a look and tell me what you think.

Thanks
Nice integration of the SMF forum. Congratulation  Grin
Can you explain us how to reproduce it ?

#19: 24-Mar-2006, 01:59 AM

Moderator

sottwell
Posts: 10,529

WWW
Odd, I got the "table blah blah does not exist" error in the main content area, refreshed the page and it loaded fine.
sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html

#20: 24-Mar-2006, 09:25 AM

bugsmi0
Posts: 356

is it common for the iframe to break the template ? bottom of page is an inche of white space, only appears on the page where the wrapped url is
Pages: [1] 2  All   Go Up
0 Members and 1 Guest are viewing this topic.