We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9162
    • 39 Posts
    Hi guys,

    I’ve followed the tutorial on how to create simple blog step by step, http://wiki.modxcms.com/index.php/Basic_Blog , but now it looks like the [+title+], [+author+] and [+link+] placholders in my BlogTemplate chunk doesn’t have values.

    I’ve also checked and saw that in the folder view in the manager, the blog pages created by the NewsPublisher snippet (I think?) didn’t specifiy which user it was created by. MAybe that could be why the [+author+] placeholder is empty. As for the others, I don’t know what’s wrong.

    Also on the blog pages the Title is missing. This gets done in Ditto’s snippet code somewhere, where I dare not go and dig around in smiley

    If anyone can help, it will be greatly appreciated. Also let me know what info you guys need.

    I’m running 0.9.6.1 and the latest version of Ditto (updated it last night as per some forum suggested).

    Here’s the ouput of my debugging console too:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html> 
    		<head>
            <title>Debug</title> 
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    		<link rel="stylesheet" type="text/css" href="http://4x4-teambuilding.com/web/manager/media/style/MODxLight/style.css" /> 
    		<link rel="stylesheet" type="text/css" href="http://4x4-teambuilding.com/web/manager/media/style/MODxLight/coolButtons2.css" /> 
    	    <link rel="stylesheet" type="text/css" href="http://4x4-teambuilding.com/web/manager/media/style/MODxLight/tabs.css"/> 
    		<script type="text/javascript" src="http://4x4-teambuilding.com/web/manager/media/script/scriptaculous/prototype.js"></script> 
    		<script type="text/javascript" src="http://4x4-teambuilding.com/web/manager/media/script/scriptaculous/scriptaculous.js"></script> 
    		<script type="text/javascript" src="http://4x4-teambuilding.com/web/manager/media/script/tabpane.js"></script>
    
    		<link rel="stylesheet" type="text/css" href="http://4x4-teambuilding.com/web/assets/snippets/ditto//debug/main.template.css" />
            </head>
    
            <body>
    		<div class="sectionHeader"> Debug</div>
    				   <div class="sectionBody"> 
    			       <div class="tab-pane" id="docManagerPane"> 
    			       <script type="text/javascript"> 
    						tpResources = new WebFXTabPane( document.getElementById( "docManagerPane" ) ); 
    		</script>
    				<div class="tab-page" id="tab_Info">  
    				    <h2 class="tab">Info</h2>  
    				    <script type="text/javascript">tpResources.addTabPage( document.getElementById( "tab_Info" ) );</script> 
    					<table>
    
    				  <tbody>
    				    <tr>
    				      <th>Basic Info</th>
    				    </tr>
    				    <tr>
    				      <td>
    				      <table>
    				        <tbody>
    
    		
    					    <tr>
    					      <th>Version</th>
    					      <td>2.0.3</td>
    					    </tr>
    			
    					    <tr>
    					      <th>Summarize</th>
    					      <td>3</td>
    
    					    </tr>
    			
    					    <tr>
    					      <th>Total</th>
    					      <td>3</td>
    					    </tr>
    			
    					    <tr>
    					      <th>Sort By</th>
    
    					      <td>createdon</td>
    					    </tr>
    			
    					    <tr>
    					      <th>Sort Direction</th>
    					      <td>DESC</td>
    					    </tr>
    			
    					    <tr>
    
    					      <th>Start</th>
    					      <td>0</td>
    					    </tr>
    			
    					    <tr>
    					      <th>Stop</th>
    					      <td>3</td>
    					    </tr>
    
    			
    					    <tr>
    					      <th>IDs</th>
    					      <td>7, 8, 9</td>
    					    </tr>
    			
    				        </tbody>
    				      </table>
    				      </td>
    				    </tr>
    
    				  </tbody>
    				</table>
    				
    		</div>		<div class="tab-page" id="tab_Parameters">  
    				    <h2 class="tab">Parameters</h2>  
    				    <script type="text/javascript">tpResources.addTabPage( document.getElementById( "tab_Parameters" ) );</script> 
    					<table>
    				  <tbody>
    				    <tr>
    				      <th>Parameters</th>
    
    				    </tr>
    				    <tr>
    				      <td>
    				      <table>
    				        <tbody>
    		
    					    <tr>
    					      <th>commentsChunk</th>
    					      <td>CommentsBlog</td>
    
    					    </tr>
    			
    					    <tr>
    					      <th>debug</th>
    					      <td>1</td>
    					    </tr>
    			
    					    <tr>
    					      <th>startID</th>
    
    					      <td>5</td>
    					    </tr>
    			
    					    <tr>
    					      <th>summarize</th>
    					      <td>4</td>
    					    </tr>
    			
    					    <tr>
    
    					      <th>total</th>
    					      <td>20</td>
    					    </tr>
    			
    					    <tr>
    					      <th>tpl</th>
    					      <td>BlogTemplate</td>
    					    </tr>
    
    			
    				        </tbody>
    				      </table>
    				      </td>
    				    </tr>
    				  </tbody>
    				</table>
    				
    		</div>		<div class="tab-page" id="tab_Fields">  
    				    <h2 class="tab">Fields</h2>  
    				    <script type="text/javascript">tpResources.addTabPage( document.getElementById( "tab_Fields" ) );</script> 
    					<div class='ditto_dbg_fields'><table>
    
    	<tr><th>display</th><th>backend</th></tr>
    	<tr><td>
    <table>
    	<tr><th>db</th><th>custom</th><th>unknown</th></tr>
    	<tr><td>
    <table>
    	<tr><td>id</td><td>introtext</td><td>published</td><td>pagetitle</td><td>createdon</td></tr>
    
    </table>
    </td><td>
    <table>
    	<tr><td>title</td><td>date</td></tr>
    </table>
    </td><td>
    <table>
    	<tr><td>user</td></tr>
    </table>
    </td></tr>
    </table>
    </td><td>
    
    <table>
    	<tr><th>db</th></tr>
    	<tr><td>
    <table>
    	<tr><td>id</td><td>published</td></tr>
    </table>
    </td></tr>
    </table>
    </td></tr>
    </table></div>
    		</div>		<div class="tab-page" id="tab_Templates">  
    				    <h2 class="tab">Templates</h2>  
    				    <script type="text/javascript">tpResources.addTabPage( document.getElementById( "tab_Templates" ) );</script> 
    					<table>
    
    				  <tbody>
    				    <tr>
    				      <th>Templates</th>
    				    </tr>
    				    <tr>
    				      <td>
    				      <table>
    				        <tbody>
    
    		
    					    <tr>
    					      <th>tpl</th>
    					      <td><pre><h3>
    	<a href="[~[+id+]~]"
    title="[+title+]">[+title+]</a>
    
    </h3> <!-- link to blogs article with it's title (link is title) -->
    <p> 
    By <strong>[+user+]</strong>
    on [+date+].</p>
    <!-- link to the article with comments form and comment count -->
    
    <a  href="[~[+id+]~]#commentsAnchor">Comments ([[Jot?
    &docid=`[+id+]` &action=`count-comments`]])</a>
     <p>
    
    <p>Summary: [+introtext+]
    <br />
    <a href="[~[+id+]~]" title="Read Post">Read
    Post</a></pre></td>
    					    </tr>
    
    			
    				        </tbody>
    				      </table>
    				      </td>
    				    </tr>
    				  </tbody>
    				</table>
    				
    		</div>		<div class="tab-page" id="tab_Retreived Data">  
    				    <h2 class="tab">Retreived Data</h2>  
    				    <script type="text/javascript">tpResources.addTabPage( document.getElementById( "tab_Retreived Data" ) );</script> 
    					<table>
    
    				  <tbody>
    				    <tr>
    				      <th>Blog 2 - Page Title (9)</th>
    				    </tr>
    				    <tr>
    				      <td>
    				      <table>
    				        <tbody>
    
    		
    					    <tr>
    					      <th>createdon</th>
    					      <td>1202766428</td>
    					    </tr>
    			
    					    <tr>
    					      <th>id</th>
    					      <td>9</td>
    
    					    </tr>
    			
    					    <tr>
    					      <th>introtext</th>
    					      <td>Summary comes here.</td>
    					    </tr>
    			
    					    <tr>
    					      <th>pagetitle</th>
    
    					      <td>Blog 2 - Page Title</td>
    					    </tr>
    			
    					    <tr>
    					      <th>published</th>
    					      <td>1</td>
    					    </tr>
    			
    				        </tbody>
    
    				      </table>
    				      </td>
    				    </tr>
    				  </tbody>
    				</table>
    				<table>
    				  <tbody>
    				    <tr>
    				      <th>Blog 1 - Page Title (8)</th>
    
    				    </tr>
    				    <tr>
    				      <td>
    				      <table>
    				        <tbody>
    		
    					    <tr>
    					      <th>createdon</th>
    					      <td>1202761284</td>
    
    					    </tr>
    			
    					    <tr>
    					      <th>id</th>
    					      <td>8</td>
    					    </tr>
    			
    					    <tr>
    					      <th>introtext</th>
    
    					      <td>Summary Summary</td>
    					    </tr>
    			
    					    <tr>
    					      <th>pagetitle</th>
    					      <td>Blog 1 - Page Title</td>
    					    </tr>
    			
    					    <tr>
    
    					      <th>published</th>
    					      <td>1</td>
    					    </tr>
    			
    				        </tbody>
    				      </table>
    				      </td>
    				    </tr>
    				  </tbody>
    
    				</table>
    				<table>
    				  <tbody>
    				    <tr>
    				      <th>Weather Report (7)</th>
    				    </tr>
    				    <tr>
    				      <td>
    
    				      <table>
    				        <tbody>
    		
    					    <tr>
    					      <th>createdon</th>
    					      <td>1202761091</td>
    					    </tr>
    			
    					    <tr>
    					      <th>id</th>
    
    					      <td>7</td>
    					    </tr>
    			
    					    <tr>
    					      <th>introtext</th>
    					      <td></td>
    					    </tr>
    			
    					    <tr>
    					      <th>pagetitle</th>
    
    					      <td>Weather Report</td>
    					    </tr>
    			
    					    <tr>
    					      <th>published</th>
    					      <td>1</td>
    					    </tr>
    			
    				        </tbody>
    
    				      </table>
    				      </td>
    				    </tr>
    				  </tbody>
    				</table>
    				
    		</div>
    		</body>
    </html>
    
    <!--- 02/12/08 09:50:33 --->
    


    Thanks
    Ettiene
      • 18397
      • 3,250 Posts
      1. Try updating to the development version as it might fix the problem.
      2. Try swapping [+title+] to [+pagetitle+]
      3. As for author, it looks like Ditto is not retrieving it. Try &hiddenFields=`createdby` with the development version as an experiment.
        • 9162
        • 39 Posts
        Thanks,

        I’ll try this and get back to everyone.