[SOLVED]create web page which sums the sitemap of many sites
[SOLVED]create web page which sums the sitemap of many sites
hello
I would like to create a web page like this
http://www.cmsmadesimple.org/about-link/sitemap/
I should import the sitemap.xml from other sites in order to create a summary page of all websites
you think it is possible?
thanks
I would like to create a web page like this
http://www.cmsmadesimple.org/about-link/sitemap/
I should import the sitemap.xml from other sites in order to create a summary page of all websites
you think it is possible?
thanks
Last edited by giapippo on Thu Sep 25, 2014 3:28 pm, edited 1 time in total.
Re: create web page which sums the sitemap of many sites
That is basically a menu tag that outputs an UL/LI with out any styling etc...
Re: create web page which sums the sitemap of many sites
hello
but I would like to create a page that contains the sitemap from more websites
I would like to do an experiment of link building
but I would like to create a page that contains the sitemap from more websites
I would like to do an experiment of link building
Re: create web page which sums the sitemap of many sites
Use a feed and feed reader to transfer the data from one to the other site
https://www.cmscanbesimple.org/blog/cre ... t-a-module
https://www.cmscanbesimple.org/blog/a-x ... ain-smarty
or use http://dev.cmsmadesimple.org/projects/cacheremotefile
https://www.cmscanbesimple.org/blog/cre ... t-a-module
https://www.cmscanbesimple.org/blog/a-x ... ain-smarty
or use http://dev.cmsmadesimple.org/projects/cacheremotefile
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
faglork
Re: create web page which sums the sitemap of many sites
Should be super-easy with the XMLmadeSimple module ...
Cheers,
Alex
Cheers,
Alex
Re: create web page which sums the sitemap of many sites
thanks
XMLMadeSimple is interesting but I do not understand how to get what I want with the template
how can I make a sitemap with these parameters as this
-------------------------------------------------------------
SimpleXMLElement Object
(
=> Array ( [0] => ... todire.it/
http://autodire.it/chi-siamo
XMLMadeSimple is interesting but I do not understand how to get what I want with the template
how can I make a sitemap with these parameters as this
-------------------------------------------------------------
SimpleXMLElement Object
(
=> Array ( [0] => ... todire.it/
http://autodire.it/chi-siamo
-
faglork
Re: create web page which sums the sitemap of many sites
Look at the xml file. You will see what the items are called.
Lets assume they are called "entry", so that your xml item should look like this:
<entry>
<loc>someurl.it</loc>
<lastmod>somedate</lastmod>
...
...
</entry>
In your template you would use (really simplified example):
{foreach from=$xml->entry item=entry}
<p><a href="{entry->loc}">{entry->loc}</a></p>
{/foreach}
hth,
Alex
Lets assume they are called "entry", so that your xml item should look like this:
<entry>
<loc>someurl.it</loc>
<lastmod>somedate</lastmod>
...
...
</entry>
In your template you would use (really simplified example):
{foreach from=$xml->entry item=entry}
<p><a href="{entry->loc}">{entry->loc}</a></p>
{/foreach}
hth,
Alex
Re: create web page which sums the sitemap of many sites
thanks for replay
I found this code that works
{if $xml}
<p><a href="{$xml->url->loc}">{$xml->url->loc}</a></p>
{/if}
this result
http://www.gianlucacompagno.com/link
but can only read the first block of the file
how can I make it go forward?
thanks for help
I found this code that works
{if $xml}
<p><a href="{$xml->url->loc}">{$xml->url->loc}</a></p>
{/if}
this result
http://www.gianlucacompagno.com/link
but can only read the first block of the file
how can I make it go forward?
thanks for help
-
faglork
Re: create web page which sums the sitemap of many sites
Just look at the code I postedgiapippo wrote:thanks for replay![]()
I found this code that works
{if $xml}
<p><a href="{$xml->url->loc}">{$xml->url->loc}</a></p>
{/if}
this result
http://www.gianlucacompagno.com/link
but can only read the first block of the file
how can I make it go forward?
This is called a "loop": the FOREACH statement iterates through all the elements of the XML list:
- for each element {foreach ...}
- from this list of elements (from $xml->url)
- which we will call *somename* (item=url) in this loop
- do this: get the needed element data (url->loc) and show them including some html code
- end of loop {/foreach}
So:
{foreach from=$xml->url item=url}
<p><a href="{url->loc}">{url->loc}</a></p>
{/foreach}
should work ...
Ciao,
Alex
Re: create web page which sums the sitemap of many sites
hallo thank for replay
the correct script is this
----------------------------------------------------------------
{foreach from=$xml->url item='url'}
<li><a href="{$url->loc}">Link: {$url->loc}</a></li>
{/foreach}
----------------------------------------------------------------
Now the last step
I would like the template would use the sitemap link to retrieve the "title" of the corresponding page
thanks for help
the correct script is this
----------------------------------------------------------------
{foreach from=$xml->url item='url'}
<li><a href="{$url->loc}">Link: {$url->loc}</a></li>
{/foreach}
----------------------------------------------------------------
Now the last step
I would like the template would use the sitemap link to retrieve the "title" of the corresponding page
thanks for help
-
faglork
Re: create web page which sums the sitemap of many sites
just look how the title entry is called in the xml file ... then proceed as above.
hth,
Alex
hth,
Alex



