DEVHIDE
  • Home (current)
  • About
  • Contact
  • Cookie
  • Home (current)
  • About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy
  • TOS
Login Or Sign up

How to transfer changed content into plone theme with diazo?

256 Views Asked by jurihandl At 05 December 2013 at 07:54 2025-12-21T19:37:25.764000

Now I need the following search structure in the theme:

<div class="sideCol">
    <aside class="siteSearch">
        <form name="searchform" action="search" class="searchPage searchform" id="searchform">
            <fieldset>
                <legend>Website durchsuchen</legend>
                <input class="searchPage text lang-de" name="SearchableText" type="text" size="25" title="Website durchsuchen" value="" placeholder="Suchbegriff..." />
                <button type="submit"><i class="icon-search"></i></button>
            </fieldset>
        </form> 
    </aside>            
</div>

All I need to get from Plones sunburst theme is the action link for the form element. So I tried this:

<replace css:content-children="#portal-searchbox">
    <xsl:variable name="action_link" select="form/@action" />
    <form name="searchform" action="search" class="searchPage searchform" id="searchform">
        <xsl:attribute name="action">${action_link}</xsl:attribute>
        <fieldset>
            <legend>Website durchsuchen</legend>
            <input class="searchPage text lang-de" name="SearchableText" type="text" size="25" title="Website durchsuchen" value="" placeholder="Suchbegriff..." />
            <button type="submit"><i class="icon-search"></i></button>
        </fieldset>
    </form>
</replace>
<replace css:content-children="#portal-searchbox" css:theme-children=".siteSearch" />

The problem ist that all I get in the theme is the structure of Plones Sunburst Search.

<div class="sideCol">
    <aside class="siteSearch">
        <form id="livesearch0" action="http://localhost:8080/mamuz/de/@@search">
            <div class="LSBox">
                <label class="hiddenStructure" for="searchGadget">Website durchsuchen</label>
                <input name="SearchableText" type="text" size="18" title="Website durchsuchen" placeholder="Website durchsuchen" accesskey="4" class="searchField" id="searchGadget" autocomplete="off">
                <input class="searchButton" type="submit" value="Suche">
                <div class="searchSection">
                    <input id="searchbox_currentfolder_only" class="noborder" type="checkbox" name="path" value="/mamuz/de/impressum">
                    <label for="searchbox_currentfolder_only" style="cursor: pointer">nur im aktuellen Bereich</label>
                </div>
                <div class="LSResult" id="LSResult">
                    <div class="LSShadow" id="LSShadow"></div>
                </div>
            </div>
        </form>
        <div id="portal-advanced-search" class="hiddenStructure">
            <a href="http://localhost:8080/mamuz/de/@@search" accesskey="5">Erweiterte Suche…</a>
        </div>
    </aside>
</div>

I'm familiar with diazo but pretty new to xslt. What is wrong? I tired several types of placements like import before it gets modified. Nothing helps.

xslt plone diazo xdv
Original Q&A
1

There are 1 best solutions below

1
ebrehault ebrehault On 05 December 2013 at 12:39

Using the replace directive on attribute itself should work:

<replace attributes="action"
    css:content="#portal-searchbox form"
    css:theme="#searchform" />

Related Questions in XSLT

  • Why does a function show up as not defined
  • CSV to XML XSLT: How to quote excape
  • how to apply templates within xsl:for-each
  • Java StreamSource from file in web application project
  • How to move an attribute and its value from one element to another
  • current index value in xsl
  • XSLT list item position issue
  • Error including one xslt to another
  • xsl:fo how to check new page appears and special ouput
  • Limit XSLT Variable to single character
  • count the nodes ignoring blank nodes
  • Sharepoint 2007 / Jquery - Replace all text on body or render HTML
  • XML to XML using XSLT: How to check that element exists in output xml and if not create element with default value
  • Visual Studio 2013 XSLT Profile
  • Xml to html using xslt of inspect code of VS Projects

Related Questions in PLONE

  • Can I use plone.protect 3.0 with Plone 4.3?
  • How do I override the main template in Plone 3?
  • Create copy of plone installed onto another server with data
  • Where is the main space used up in Plone file upload?
  • Create a folder in Plone and set uid
  • Plone - Syntax Error when doing hello world tutorial
  • collective.googleanalytics report with filter containing tag
  • Redirecting Site Root URL to its Language Root Folder
  • How to move a content type definition created TTW to the file system
  • Multiple contact forms in a Plone website
  • How to transfer a structure from one Plone to another
  • Javascript form processing issue in Plone
  • How to get fields displaying in a custom plone dexterity form?
  • Plone- In a dexterity.AddForm, how can I include a schema.List widget that has a value_type of object?
  • Usage of ZODB temporary storage

Related Questions in DIAZO

  • How to transfer changed content into plone theme with diazo?
  • Missing TinyMCE on a Diazo themed Plone site?
  • plone diazo with esi
  • Diazo theme with json attributes error: "Attribute 'data-plugin-options': Failed to compile the expression"
  • Using Same Folder for Diazo Theme and ZCML resourceDirectory
  • Plone - XSLT/Diazo - Replace Plone portal-personaltools Markup
  • Ajax Modal Popups return blank in my Diazo theme
  • How to serve static Diazo resources with no cookies?
  • How to remove/replace meta http-equiv="X-UA-Compatible" tag in Diazo
  • Remove attributes-on-fly with Diazo
  • Stripping empty tags from Plone content with Diazo
  • "Document is empty" error when applying Diazo theme in Apache
  • Diazo: css:if-content and css:if-not-content are both matched
  • Modify "on the fly" the portal column content tag's class
  • Diazo + Apache + mod_transform: theming `/` different from other paths

Related Questions in XDV

  • How to transfer changed content into plone theme with diazo?
  • XDV condition based on a presence of a cookie
  • uwsgi + xdv integration
  • local-name() support in Collective.xdv
  • collective.xdv and multiple theme files
  • Passing dynamics attributes to collective.xdv inline XSL
  • Setting doctype for XDV theme
  • Rewriting URLs with XDV
  • Unique URLs in plone
  • How to transform block of content from plone being inserted into diazo theme
  • collective.xdv - define an alternative theme breaks transform for default theme
  • Page unthemed when using overlay form
  • Migrating an XDV theme product to Diazo
  • Drop content div only in the front-page with XDV
  • Static css file and xdv

Trending Questions

  • UIImageView Frame Doesn't Reflect Constraints
  • Is it possible to use adb commands to click on a view by finding its ID?
  • How to create a new web character symbol recognizable by html/javascript?
  • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
  • Heap Gives Page Fault
  • Connect ffmpeg to Visual Studio 2008
  • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
  • How to avoid default initialization of objects in std::vector?
  • second argument of the command line arguments in a format other than char** argv or char* argv[]
  • How to improve efficiency of algorithm which generates next lexicographic permutation?
  • Navigating to the another actvity app getting crash in android
  • How to read the particular message format in android and store in sqlite database?
  • Resetting inventory status after order is cancelled
  • Efficiently compute powers of X in SSE/AVX
  • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Popular # Hahtags

javascript python java c# php android html jquery c++ css ios sql mysql r reactjs

Popular Questions

  • How do I undo the most recent local commits in Git?
  • How can I remove a specific item from an array in JavaScript?
  • How do I delete a Git branch locally and remotely?
  • Find all files containing a specific text (string) on Linux?
  • How do I revert a Git repository to a previous commit?
  • How do I create an HTML button that acts like a link?
  • How do I check out a remote Git branch?
  • How do I force "git pull" to overwrite local files?
  • How do I list all files of a directory?
  • How to check whether a string contains a substring in JavaScript?
  • How do I redirect to another webpage?
  • How can I iterate over rows in a Pandas DataFrame?
  • How do I convert a String to an int in Java?
  • Does Python have a string 'contains' substring method?
  • How do I check if a string contains a specific word?
.

Copyright © 2021 Jogjafile Inc.

  • Disclaimer
  • Privacy
  • TOS
  • Homegardensmart
  • Math
  • Aftereffectstemplates