Welcome to TalkGraphics.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Dynamic Page and Variable Length External Content

    I have created a page wide placeholder to receive external content and used the dynamic page tweak to automatically extend the page length as required. The placeholder is at the bottom of the page before the footer.

    My question is can I somehow create a space on the page - say a rectangular column on the right side - that will receive the external content and automatically extend the placeholder area and the page? I don't want a scrolling I-Frame. Would there be a way to use "div" code to achieve this?

    I'm using Designer Pro 6.

    Clarification - I can do it as long as there is no content below the placeholder. Can it be done so the expanding content pushes the remaining page content down if there is content below the placeholder?

    Thanks
    Gary
    Last edited by V12CatMan; 29 September 2012 at 01:07 PM. Reason: Clarification

  2. #2
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Dynamic Page and Variable Length External Content

    All content on the footer should be pushed down.
    Attached Files Attached Files

  3. #3
    Join Date
    May 2012
    Location
    Slovenia
    Posts
    55

    Default Re: Dynamic Page and Variable Length External Content

    Pretty brilliant

    ... and now dummy question - how can we put external content in this placeholder. I presume ( as a primitive cms method) that if someone put a pre-named document on a specific place on a server, that text from this document can be recognized as a content, so how and where I should put link in a placeholder? ( or I totally missed the point and the method? )

    Another dummy cms alike question - is this dynamic thing works also with pictures?

  4. #4
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Dynamic Page and Variable Length External Content

    Quote Originally Posted by Arsov View Post
    how can we put external content in this placeholder. I presume ( as a primitive cms method) that if someone put a pre-named document on a specific place on a server, that text from this document can be recognized as a content, so how and where I should put link in a placeholder?
    First of all, make sure that your hosting plan supports php scripts. Then place following code in the placeholder:
    Code:
    <?php include 'my_document.txt'; ?>
    Replace the blue text with the actual document name.
    To make sure it all works fine, the page that contains this code should have a .php extension instead of .htm or .html.
    Quote Originally Posted by Arsov View Post
    Another dummy cms alike question - is this dynamic thing works also with pictures?
    Your content file can be any HTML code fragment. So it can contain <img> element/s. If so, it will work with pictures. Similarly, it will work with almost any possible HTML content that you put into the included text file. But remember, you should not include complete HTML pages, only HTML fragments (i.e. without the <head> or <body> tags).
    John.

  5. #5
    Join Date
    May 2012
    Location
    Slovenia
    Posts
    55

    Default Re: Dynamic Page and Variable Length External Content

    Great, many thanks.

  6. #6
    Join Date
    Apr 2010
    Posts
    13

    Default Re: Dynamic Page and Variable Length External Content

    Quote Originally Posted by Drwyd View Post
    All content on the footer should be pushed down.
    Do you know if this tweak under the Xara Designer Pro X works?

    Many thanks!

  7. #7
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Dynamic Page and Variable Length External Content

    Do you know if this tweak under the Xara Designer Pro X works?
    It does

  8. #8
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Dynamic Page and Variable Length External Content

    OK. Clearly works. I seem to have a problem with the external content that is in the placeholder div that I have to investigate. I have used php includes (not with dynamic page) so that is a good solution when applicable.
    Thanks

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •