Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2000
    Location
    Beaverton, OR
    Posts
    3,267

    Default SmartField request

    I am using Xara Designer Pro X (18.5.0.62892 DL x64 Aug 11 2021)

    I'd like to suggest adding the following to the SmartField list:
    1. CurrentPageNumber
    2. LastPageNumber
    3. CurrentDate


    For CurrentDate, possibly have options for the date format.

    Regards, John

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,487

    Default Re: SmartField request

    Good suggestions John. Happy New Year.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,746

    Default Re: SmartField request

    @John, in concept SmartFields are not designed to vary across pages so CurrentPageNumber will not fly.
    What is wrong with Insert > Page number?

    You can currently easily set up LastPageNumber as a Personal SmartField.

    CurrentDate is as problematic. It would have to be coded in.
    Here is an example of Xara's current coding for SmartField links:
    Code:
    <span class="xr_tl Normal_text xr_s0" style="top: 0px;">
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)">T</a>
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)">h</a>
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)">i</a>
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)">s</a>
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)"> </a>
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)">i</a>
    <a href="<Xara_configurared_name>:website:link" target="_self" onclick="return(xr_nn());" onmousemove="xr_mo(this,0)">s</a>
    </span>
    The link is the text "This is" but Xara has codes every glyph to have the same link detail.
    The _self part cannot be altered to _target so you go to a fresh Tab.
    You can only format the entire phrase.

    It would be cleaner to just insert a JavaScript Placeholder for the Date/Time as all of the above disappears.

    I have moved the ask to the Dear Xara Forum.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Aug 2000
    Location
    Beaverton, OR
    Posts
    3,267

    Default Re: SmartField request

    I overlooked Insert > Page Number . . . (embarrassing).

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,746

    Lightbulb Re: SmartField request

    Quote Originally Posted by jclements View Post
    I overlooked Insert > Page Number . . . (embarrassing).
    Never! Every Post should be taken as a learning experience, otherwise TG would be sterile.

    The debate for Xara should be on Page Numbering, as in where are the Book / Article / Section / Chapter / Annex / Appendix / Page (Left / Right / Double) / Paragraph (& Sub) / Heading / Table / Figure / List numbering concepts necessary for a proper DTP capability?
    Dare I say, lost in the Master Page delivery?

    Acorn


    In passing, I use CSS Counters.
    So for Page Numbering, create a ClassName, pageno, and apply to a Text Box with a space.
    In Website > Head or Body (code), put:
    Code:
    <style>
    body {
      counter-reset: pgno;
    }
    .pageno::after {
      counter-increment: pgno;
      content: "Variant " counter(pgno, lower-greek) "[" counter(pgno, armenian) "]";
    }
    </style>
    This (clearly) only works for Transition and Scrolling websites.

    The downside, it all turns to smoke in PDFs.

    All Greek to me.xar
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

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
  •