The docs and samples aren't quite all in sync with the source yet, but
from what I can see you want to have a single page action with
multiple icons in its list, and use chrome.pageAction.setIcon() and
.setTitle() to control what's shown.

- Pam

On Tue, Oct 27, 2009 at 11:38 AM, PhistucK <[email protected]> wrote:
> There is an intentional limit in the current extension system - only one
> Page\Browser Action feature per extension.
> ☆PhistucK
>
>
> On Tue, Oct 27, 2009 at 01:36, Gabe <[email protected]> wrote:
>>
>> Hi,
>>
>> How do I enable multiple Page Actions within a single extension? The
>> goal is to have an extension that searches for a particular line of
>> code on the page and displays a different icon depending on the state
>> of this line of code (eg. found- green, not found- red, contains a
>> particular value- yellow).
>>
>> I attemped to solve it like this:
>>
>> <code>
>>  "page_actions": [
>>    {
>>      "id": "GAPageAction",
>>      "name": "Google Analytics Tracking Code was found on this
>> page.",
>>      "icons": [
>>         "ga-grey.png"
>>      ]
>>    },
>>    {
>>      "id": "GWOPageAction",
>>      "name": "Google Website Optimizer Tracking Code was found on
>> this page.",
>>      "icons": [
>>         "gwo-grey.png"
>>      ]
>>    },
>>    {
>>      "id": "AWCTPageAction",
>>      "name": "AdWords Conversion Tracking Code was found on this
>> page.",
>>      "icons": [
>>         "awct-grey.png"
>>      ]
>>    }
>>  ]
>> </code>
>>
>> but I get an error like, "Could not load extension... Invalid value
>> for 'page_actions'. There can be only one."
>>
>> Thoughts?
>>
>> Please excuse me if this has been asked before. I did a search and
>> couldn't find any useful information.
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to