Repository navigation
How to Create a Table Of Contents/Menu of Category Pages #595
|
I'm migrating away from ShortcutMaker to HTTP-Shortcuts. In ShortcutMaker I had a Table Of Contents Menu (ToC) to access the many collections I have setup over the years. I'd like to setup a ToC Category in HTTP-Shortcuts, which contains shortcuts that jump to another category page. I have many categories and scrolling in the top menu to find the one I'm after is not practical. This would entail setting up a ToC category, which can be launched via a shortcut on the launcher homepage. The ToC category would contain entries that when clicked would open a different category page. How can I set this up? I've tried, in vain, to create a category shortcut to open a different category page:
This results in this error: I've also tried many permutations of this sendItent command. What else can I try? |
Replies: 1 comment 7 replies
|
Try the following JS snippet in a Scripting shortcut: sendIntent({
type: 'activity',
packageName: 'ch.rmy.android.http_shortcuts',
className: 'ch.rmy.android.http_shortcuts.activities.main.MainActivity',
clearTask: true,
extras: [{
name: 'ch.rmy.android.http_shortcuts.category_id',
value: '<category_id>',
}]
});Currently the only way to get the category IDs is by creating an export and looking at the JSON file that's contained in the resulting ZIP file. |
I just downloaded v4.10.0 and tried out the new the openCategory function.
I works a treat and does everything I was tying to accomplish in the discussion above.
TY for considering my request and implementing it so fast!
You are a model example of the power of the opensource model.
TY again.