1
kngharv
HTML hyperlink to local files in Freecontent module... and beyond...
  • 2003/11/14 8:39

  • kngharv

  • Just popping in

  • Posts: 3

  • Since: 2003/7/3 7


This is the identical question that brewmeister has asked awhile back at
HTML in Freecontent, Tiny, etc


I have NO PROBLEM displaying single HTML file, nor HTML files with external links.

However, I ran into problem immediately when the HTML file contains hyperlinks that links to local files.

I would have a html file looks like this:



3 steps to get things right



  1. First step
  2. Second step
  3. final step




where step1.html, step2.html and step3.html are in the same physical location as the original index.html.

I am not so sure how the XOOPs handles relative links in its module. In both Freecontent and C-Jay Content's case, it can't find any of the relative link in the original HTML file. All the relative link are forwarded to the location of the module, not its respect content path.

How to make this work? I mean, I would imagine this is a relatively common problem. Yet, i am not even sure is the problem lies upon settings/limation of XOOPs or its modules.

Or is there any other modules which does this smoothly?

Thanks

kngharv

2
chapi
Re: HTML hyperlink to local files in Freecontent module... and beyond...
  • 2003/11/14 8:42

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


The problem is, that FreeContent and others doesn't include normal html files as
http://www.yourdomain.com/modules/freecontent/step1.html

It always looks as something like this
http://www.yourdomain.com/modules/freecontent/index.php?id=12

So you have to use the second type of link in your html site in order to access the included site.

3
Catzwolf
Re: HTML hyperlink to local files in Freecontent module... and beyond...
  • 2003/11/14 8:50

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


This has been a problem for these type of content modules for a long time now, the fact is, its not an easy problem to solve. I myself have been working on a solution to this for WF-Sections and yet to find one that suits every ones needs.

The problem is that the module relative path is used no matter what and the only way to solve this is by putting the full relative path to the file in the html, for all files (php, html or images) to get this working correctly.


4
kngharv
Re: HTML hyperlink to local files in Freecontent module... and beyond...
  • 2003/11/17 3:46

  • kngharv

  • Just popping in

  • Posts: 3

  • Since: 2003/7/3 7


ohh, what kind solution is it?

Anyway. I really appreciate you hackers' effort to put out such wonderful software as it is, even though it doesn't really resolve my problem completely.

I will see what i can get by with the exisitng modules such as Freecontent and WF-Section.

Thanks all

ps. Is any article on "Get Involved with Open-Source PHP project for non-experienced Dummy?"

5
brewmeister
Re: HTML hyperlink to local files in Freecontent module... and beyond...

Hey kngharv,

The only way I was able to get around this limitation was by placing the subfolders within the module folders. It was dirty and ugly but it worked. The file structure is as follows.

modules\freecontent\content\htmlfiles.htm
modules\freecontent\images\images.jpg
modules\freecontent\details\otherhtml.htm
modules\freecontent\admin
modules\freecontent\blocks
etc, etc, ....

Like I said, not clean but it keeps me from editing hundreds of html files. I am still searching for a way to edit the export template in my movie database app but until I have time to dig into it this has worked.

Good luck

Login

Who's Online

256 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 256


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits