Sep 08, 2008, 10:40 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2   Go Down
  Print  
Author Topic: How to wrap other URL into MODx?  (Read 9149 times)
0 Members and 1 Guest are viewing this topic.
chanh
Guest
« on: Feb 16, 2006, 04:08 PM »

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
Logged
Djamoer
Testers
*
Posts: 1,492

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


WWW
« Reply #1 on: Feb 16, 2006, 04:28 PM »

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,
Logged

banzai
Testers
*
Posts: 853


MODx Italia


WWW
« Reply #2 on: Feb 16, 2006, 04:34 PM »

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.
Logged

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  |  bubuna.com - Web & Multimedia Design
chanh
Guest
« Reply #3 on: Feb 16, 2006, 04:58 PM »

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.

Logged
garryn
Coding Team
*
Posts: 1,114



WWW
« Reply #4 on: Feb 16, 2006, 05:06 PM »

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
Logged

banzai
Testers
*
Posts: 853


MODx Italia


WWW
« Reply #5 on: Feb 16, 2006, 05:09 PM »

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 487 times.)
* Wrapper.txt (3.57 KB - downloaded 479 times.)
Logged

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  |  bubuna.com - Web & Multimedia Design
banzai
Testers
*
Posts: 853


MODx Italia


WWW
« Reply #6 on: Feb 16, 2006, 05:10 PM »

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
Logged

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  |  bubuna.com - Web & Multimedia Design
chanh
Guest
« Reply #7 on: Feb 16, 2006, 05:58 PM »

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
Logged
banzai
Testers
*
Posts: 853


MODx Italia


WWW
« Reply #8 on: Feb 16, 2006, 06:20 PM »

Oops! i forgot View Port Template Variable - native alternative to wrapper in modx.
Logged

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  |  bubuna.com - Web & Multimedia Design
chanh
Guest
« Reply #9 on: Feb 16, 2006, 09:08 PM »

Where can I find "view port"?

Thanks
Logged
rthrash
Foundation
*
Posts: 9,106



WWW
« Reply #10 on: Feb 16, 2006, 09:19 PM »

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
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
chanh
Guest
« Reply #11 on: Feb 16, 2006, 09:22 PM »

Is there a sample on how to do that?

Thanks
Logged
rthrash
Foundation
*
Posts: 9,106



WWW
« Reply #12 on: Feb 16, 2006, 10:13 PM »

Honestly your best, most reliable way to do it unfortunately is creating a custom theme for SMF.
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
dernier_recours
Member
**
Posts: 83



« Reply #13 on: Feb 17, 2006, 12:44 PM »

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>
Logged

at the edge of dawn,
you ask yourself if your shadow did follow you down
all night long
chanh
Guest
« Reply #14 on: Feb 17, 2006, 02:25 PM »

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
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!