[Pro] Text from external doc... DIY CMS

Hi All, hoping someone can help….

I’m attempting to design my first Mobile site.

It’s a mobile copy of an existing site where I used iFrames as a CMS.

It works like this - the client edits a really basic text HTML and then Freeway uses it in an iFrame. Simple on a full size site. Problem is on a mobile site I need the iFrame box to be chance shape/size depending on the mobile orientation.

I’m ashamed to say I don’t know what it’s called when the text in a box reformats it’s self to fit the browser window… but that’s what I’m after.

I cant use expensive CMS solution and don’t want the advertising free ones come with.

Is there maybe a way of inserting text from a donor file instead of the limited iFrame option?

Thanks all… looking forward to seeing your suggestions!

James


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi James
the method you are trying to make work, isn’t really that ideal. It means the client uploading files via ftp. Plus the possibility of clients really messing things up. Surly just a simple CMS like webyep which is free and no advertising or perch would be a better and quicker method… it also means the flexible layout you need is preserved.

Kind regards Max


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Max, thanks for the quick response!!

I was under the impression that WebYip had advertising? (a logo at least?)

And yes… FTP is what we’re using but it’s my wife’s site so if she brakes it I can just get her to make me sandwiches whilst I fix it… :wink:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The client will only see the web yep logo when the click to sign into the edit mode. And even that isn’t at all obtrusive. The public at large when viewing the site won’t see any form of advertisement.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Rich,

Thanks for the response. Turns out you’re quite right, so I might use Webyep for my main site, fab!.. so looks like I might need to find some decent UK instructions - Max, loving the Freeway Action but I’m not charging for the sight so am reluctant to fork out even more money for this solution!

Unfortunately the demo site still doesn’t wrap when you resize the browser for some reason… so this won’t actually fix my Mobile Site problem will it?

Cheers!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

but I’m not charging for the sight so am reluctant to fork out even more money for this solution!

Not even for your wife?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A very good point Dave. Problem is I just forked out £160 for Freeway!!.. Of course I love her but there are limits ;0)

Anyway - back to the point…are there any other solutions anyone knows of?

Cheers.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So… just to try to clarify…

I don’t mind using FTP - all the text doc’s are in a different folder so there a bit of security there.

I just want to “Extract” the text from a .txt or a .doc or any format really and have Freeway show it using it’s own style and formatting as if it were a regular text bow, that way it’l wrap and change size properly.

Maybe there’s nothing out there… I don’t know!

Thanks all:D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try this. First, change your page filename to end in .php using the Page Inspector.

Next, draw an HTML box where you want your magic text to appear. With your text cursor in the HTML box, type two spaces, then press the left arrow key once to place your cursor between them. From the main menu, choose Insert / Markup Item. In the dialog that appears on screen, paste the following code, then modify it to match the actual relative path to your text files folder and the name of a particular file in that folder.

<?php echo nl2br(file_get_contents('../text_files/file1.txt')); ?>

Okay the dialog and then select all text (the space - markup item - space sandwich) in the box and apply your preferred styling. Note that there can only be one level of styling here, it’s going to act like a single large paragraph, no matter how many logical paragraphs there are, denoted by two returns in a row.

Upload the resulting page to your server and try it out in a browser. You should see something (maybe an error message) in the middle of the box where you added the markup item. Report back and we can zero in on getting this to work for you.

Notes: The relative path to the folder means “starting with the location of the file with the file_get_contents call, how would you construct a URL to the text files folder?” In the example above, let’s say that the test.php file (the page we have coded in Freeway) lives at the top level of the htdocs folder. If you follow the …/ (up and over) command, you will deduce that the text_files folder lives next to the htdocs folder, that is, in the same parent folder. You don’t have to use a relative path, you can also use a root path if you know it. Say your account folder is found in /var/homes/j/james. Your htdocs folder (or whatever your server admin decided to call it) would be at /var/homes/j/james/htdocs, and thus your text files could be at /var/homes/j/james/text_files. In this example, I am encouraging your to place the text_files folder somewhere outside of the htdocs (or local equivalent) folder, because anything below that level will be visible by default, and if you want to secure it, you will need to follow additional steps to do so.

Also, there is nothing you can count on being installed on your server that will let you read .doc files as anything other than a mash of binary data. Text is fine, any other proprietary format will require translation.

Walter

On Aug 14, 2012, at 3:28 AM, James I wrote:

So… just to try to clarify…

I don’t mind using FTP - all the text doc’s are in a different folder so there a bit of security there.

I just want to “Extract” the text from a .txt or a .doc or any format really and have Freeway show it using it’s own style and formatting as if it were a regular text bow, that way it’l wrap and change size properly.

Maybe there’s nothing out there… I don’t know!

Thanks all:D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

That’s awesome - thanks for this. I’m in work right now but wil try it out as soon as I get back home and let you know the outcome.

James


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

That’s awesome - thanks for this. I’m in work right now but wil try it out as soon as I get back home and let you know the outcome.

James


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well… I’ve given the client the options and she went for WebYep… so that’s sorted. Thanks all…

Now… where’s that “New Post” button as I have a WebYep question!!

L8r


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well… I’ve given the client the options and she went for WebYep… so that’s sorted. Thanks all…

Now… where’s that “New Post” button as I have a WebYep question!!

L8r


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options