0
Welcome Guest! Login
0 items Join Now

Adding New Positions - String could not be parsed as XML

    • Lownotes's Avatar
    • Lownotes
    • Hero Rocketeer
    • Posts: 325
    • Thanks: 2

    Adding New Positions - String could not be parsed as XML

    Posted 9 years 1 day ago
    • I'm trying to add a new row of module positions to Chimera template for Joomla.

      I've done this sucessfully before on other gantry templates but now running into an issue and not sure what I'm doing wrong.

      I want to add a new header row "headerfullwidth", that will replace the existing header and be full width, instead of fixed width. I'd also like it to have positions.

      This is what I've done. The problem seems to be with template-options.xml but not sure what I'm doing wrong.

      index.php
      				<?php /** End Header **/ endif; ?>
      				<?php /** Begin HeaderFullWidth **/ if ($gantry->countModules('headerfullwidth')) : ?>
      				<div id="rt-header">
      					<div class="rt-container">
      						<div class="rt-flex-container">
      							<?php echo $gantry->displayModules('headerfullwidth','standard','standard'); ?>
      							<div class="clear"></div>
      						</div>
      					</div>
      				</div>
      				<div class="rt-header-fixed-spacer"></div>
      				<?php /** End HeaderFullWidth **/ endif; ?>
      				<?php /** Begin Slideshow **/ if ($gantry->countModules('slideshow')) : ?>


      templateDetails.xml
              <position>drawer</position>
              <position>headerfullwidth-a</position>
              <position>headerfullwidth-b</position>
              <position>headerfullwidth-c</position>
              <position>headerfullwidth-d</position>
              <position>headerfullwidth-e</position>
              <position>headerfullwidth-f</position>
              <position>header-a</position>


      template-options.xml
      		<!-- Header -->
      		<fields name="header" type="selectedset" label="HEADER_STYLE" description="HEADER_STYLE_DESC">
      			<field name="textcolor" type="colorchooser" default="#FFFFFF" label="TEXT_COLOR" description="TEXT_COLOR_DESC" setinsession="true" setbysession="true" setincookie="true" setbycookie="true" />
      			<field name="background" type="colorchooser" default="#3B3B3B" label="BACKGROUND_COLOR" description="BACKGROUND_COLOR_DESC" setinsession="true" setbysession="true" setincookie="true" setbycookie="true" />
      			<field name="type" type="selectbox" default="normal" label="HEADER_TYPE" description="HEADER_TYPE_DESC" isbodyclass="true" setinsession="true" setbysession="true" setincookie="true" setbycookie="true">
      				<option value="scroll">SCROLLING_HEADER</option>
      				<option value="fixed">FIXED_HEADER</option>
      				<option value="normal">NORMAL_HEADER</option>
      			</field>
      		</fields>
      
      		<!-- HeaderFullWidth -->
      		<fields name="headerfullwidth" type="selectedset" label="HEADER_STYLE" description="HEADER_STYLE_DESC">
      			<field name="textcolor" type="colorchooser" default="#FFFFFF" label="TEXT_COLOR" description="TEXT_COLOR_DESC" setinsession="true" setbysession="true" setincookie="true" setbycookie="true" />
      			<field name="background" type="colorchooser" default="#3B3B3B" label="BACKGROUND_COLOR" description="BACKGROUND_COLOR_DESC" setinsession="true" setbysession="true" setincookie="true" setbycookie="true" />
      			<field name="type" type="selectbox" default="normal" label="HEADER_TYPE" description="HEADER_TYPE_DESC" isbodyclass="true" setinsession="true" setbysession="true" setincookie="true" setbycookie="true">
      				<option value="scroll">SCROLLING_HEADER</option>
      				<option value="fixed">FIXED_HEADER</option>
      				<option value="normal">NORMAL_HEADER</option>
      			</field>
      		</fields
      
      		<!-- Showcase -->


      Thanks!
    • Last Edit: 9 years 1 day ago by Lownotes.
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21565
    • Thanks: 3091
    • messin' with stuff

    Re: Adding New Positions - String could not be parsed as XML

    Posted 9 years 1 day ago
    • I'm assuming line 21 in your template-options.xml snippet actually has a closing carrot?

      >

      Try it without the last <field>...</field> with the Selectbox and header type options... remove that bit and test.

      be sure you're clearing all your system caches after uploading the new files
    • Last Edit: 9 years 1 day ago by Matt.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Lownotes's Avatar
    • Lownotes
    • Hero Rocketeer
    • Posts: 325
    • Thanks: 2

    Re: Adding New Positions - String could not be parsed as XML

    Posted 9 years 1 day ago
    • Thanks Matt,
      I think I figued it out. But have a new question, I'll make a new post though.

Time to create page: 0.041 seconds