<div>Hi Joseph,</div>
<div> </div>
<div>Thanks for the wp.getPages fix. I am facing no more problems with re-direction now.</div>
<div> </div>
<div>But Now, I have a different problem with respect to WordPress Pages.</div>
<div>As per my understaning, each of the WordPress 'Pages', unlike regular blog posts, can have a different template. And, the WordPress web console helps the user to choose the template he wants to use for the Page being edited.</div>
<div> </div>
<div>In our product, we allow the user to edit the Pages and we want to allow the user to choose template for the Page as he can do it in the WordPress web console.</div>
<div> </div>
<div>I have some questions on how I can achieve this:</div>
<ol>
<li>How can I get the list of Templates available for the user to choose from? Is there any wp.* API for that?</li>
<li>Once I get the List, If an user selects a template, which XMLRPC API would help me in updating this information - wp.editPage seems to have no field to capture the details of the template - correct me if I am wrong.</li>
</ol>
<div>Please help me to resolve this problem.</div>
<div> </div>
<div>Thanks and Regards,</div>
<div>Srinivas Vedantam<br></div>
<div class="gmail_quote">On Wed, Feb 6, 2008 at 9:27 PM, Joseph Scott <<a href="mailto:joseph@randomnetworks.com">joseph@randomnetworks.com</a>> wrote:<br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><br>
<div>
<div>
<div></div>
<div class="Wj3C7c">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I am working on product to list all the Pages in a WordPress based website.<br>I am using the XMLRPC - wp.getPages to get the list.<br>
<br>I have written some logic in my code which works only if I am able to<br>get the details of the Page I am viewing (browsing).<br>I am doing this by obtaining the current url the browser points to and<br>trying to match it with the permaLink or link from the list returned<br>
by wp.getPages.<br><br>This logic was working fine until two weeks back.<br>Now, my logic is failing to find a match as the permaLink or link<br>returned when I call wp.getPages is different from the actual URL of<br>that Page.<br>
<br>This is because there is some kind of re-direction happening from the<br>permaLink/Link returned from wp.getPages.<br><br>For example, consider a Page "world" with Page Id - 23 and parent Page<br>as some Page - "Hello"<br>
when wp.getPages is called, it returns a permaLink for this Page ('world') as:<br><a href="http://www.xxx.wordpress.com/?Page_id=23" target="_blank">www.xxx.wordpress.com/?Page_id=23</a><br><br>But when the user browses to this Page, the url as shown in the<br>
browser address bar is<br><a href="http://www.xxx.wordpress.com/Hello/world" target="_blank">www.xxx.wordpress.com/Hello/world</a>.<br><br>It's getting redirected!<br><br>Question:<br>Now, Is there any way - any API that maps between permaLink and the<br>
redirected URL or any other field in the struct returned by<br>wp.getPages from which I can actually find<br><a href="http://www.xxx.wordpress.com/Hello/world" target="_blank">www.xxx.wordpress.com/Hello/world</a>.<br><br>
<br>Please help me in fixing this issue as I can't proceed without fixing this.</blockquote></div></div>
<div><br><br><br>Sorry about the delay in responding, this got stuck in my spam folder (Gmail seems to be doing that a lot lately). I'm currently trying to track down the change that caused this so that we can get it fixed.<br>
</div><br></div></blockquote><br>