Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.

If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping

Answers may be delayed for posts that do not include sufficient information.

How to customise caNavLink()

edited September 2018 in Pawtucket


I am quite new to Collective Access / Pawtucket. I am working on customising a theme for a library archive, and have come up against something I cannot solve, and am hoping one of your lovely people can help point me in the right direction.

Link elements are often inserted into pages using caNavLink() but I cannot find any documentation for how to insert a link title attribute. So for example on one page I can see the following:

<?php print caNavLink($this->request, _t("Search"), "", "", "Search", "advanced/objects"); ?>

How would I add a title attribute into this link?

Thanks in advance!



  • You do it like so:

    <?php print caNavLink($this->request, _t("Search"), "", "", "Search", "advanced/objects", [], ['title' => 'my title']); ?>

    The empty array after "advanced/objects"" are additional URL parameters. The second array is used for tag attributes.

Sign In or Register to comment.