FAQ Agenda EN: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 2: Line 2:
'''How to Export the Dolibarr Agenda (for example to include it into Google)?'''
'''How to Export the Dolibarr Agenda (for example to include it into Google)?'''


- Activate module Agenda,<br/>
* Activate module Agenda,
- Create events and tasks,<br/>
* Create events and tasks,
- Into tab "Other" of Agenda module setup pages, into field "Key to allow the export": enter a word of your choice ( example : "dummy" and click on Save)<br/>
* Into tab "Other" of Agenda module setup pages, into field "Key to allow the export": enter a word of your choice (example: "DUMMY" and click on Save)<br/>
- Get the link on line: "An export link to ical format is available at following link:"<br/>
* Get the link on line: "An export link to ical format is available at following link".<br/>
Example of build link (with "dummy") : <pre>http://monsite/comm/action/agendaexport.php?format=ical&type=event&exportkey=dummy</pre><br/>
Example of build link (with "DUMMY" as key word) :  
- Go on Google and "agend parameters" > add an agenda > add by url, enter the above link.<br/>
<pre>
* Problems already known: if the following message appears :<br/>
http://mysite/comm/action/agendaexport.php?format=ical&type=event&exportkey=DUMMY
</pre>
* Go on Google and "agenda parameters" > add an agenda > add by url, enter the above link.<br/>
Problems already known: if the following message appears :<br/>
''Impossible to get URL, because the robots.txt file does not allow exploration.''<br/>
''Impossible to get URL, because the robots.txt file does not allow exploration.''<br/>
edit file'' robots.txt'' that is present into your Dolibarr root web site, and change it to have:
edit file '''robots.txt''' that is present into your Dolibarr root web site, and change it to have:


<pre>
<pre>
Line 18: Line 21:
User-agent: Googlebot
User-agent: Googlebot
Disallow: /
Disallow: /
Allow : /comm/action/agendaexport.php?format=ical&type=event&exportkey=CLEDECONTROLE
Allow : /comm/action/agendaexport.php?format=ical&type=event&exportkey=DUMMY
</pre>
</pre>


Warning; You must wait 24hours before the change is known by Google.
Warning; You must wait 24 hours before the change is known by Google.