Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{NEWPAGE>foo:@INPUT@:start}} syntax does not work (Jackrum, current versions) #98

Closed
Chris75forumname opened this issue Oct 12, 2023 · 9 comments · Fixed by #102
Closed

Comments

@Chris75forumname
Copy link

Chris75forumname commented Oct 12, 2023

{{NEWPAGE>foo:@INPUT@:start}} syntax (taken from the documentation) does not work (as described in the documentation).
Placeholder @INPUT@ is not replaced, resulting in new page ids, like so: /doku.php?id=foo:input:start:newpage. (tested with Jackrum and current version of plugin)

@stvoigt
Copy link

stvoigt commented Dec 19, 2023

Same here...

@cblte
Copy link

cblte commented Mar 22, 2024

Running Kaos now and this is still an issue.

@Hirschiii
Copy link

Runnng Kaos:

same with: {{NEWPAGE>journal:%Y-%m-%d?autopage}}

this turns to: journal:y-_m-_d_autopage:newpage

and the autopage Option does not work as well. I still have to give input

@gnoownow10
Copy link

Runnng Kaos:

same with: {{NEWPAGE>journal:%Y-%m-%d?autopage}}

this turns to: journal:y-_m-_d_autopage:newpage

and the autopage Option does not work as well. I still have to give input

Same here. Has this feature ever been implemented in the first place?

@jonathanwgebb
Copy link

Still really hoping for a fix to use @input@. my desire is be able to create new directories on the homepage of my wiki with.
{{NEWPAGE>@input@:homepage}}

@jonathanwgebb
Copy link

Found a way to fix this, not the prettiest, but works. In the file script.js, the parsed and filtered strings of the namespace directory and the page name are merged then a new page is created. my solution is to change line 22.

turn var id = ns.val()+":"+title.val();

into
image
This will replace "userinput" in the {{NEWPAGE>userinput:hompage}} with the "title" you entered and then not include the title at the end of string. Make this flag whatever you want. because this modification is after the PHP syntax, the "@'s" are already removed from the string and it is lowercased, hence why I made a custom flag of "userinput". I am not good enough at PHP to find the missing piece in the PHP side of this plugin. That is the better solution if someone can hunt it down.

@cblte
Copy link

cblte commented Jul 25, 2024

Will this ever get fixed?

@Fabien4941
Copy link

Same here, @page@ not works.

@dregad
Copy link
Owner

dregad commented Sep 14, 2024

These features were actually part of #72. The PR had merge conflicts, which I managed to resolve (or so I hope), but I never managed to find the time perform the required testing.

The code is available here #102 so if you guys are able and willing to test and confirm that it works as expected, it would be appreciated.

Please post your feedback in the PR.

@dregad dregad closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2024
@dregad dregad linked a pull request Nov 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants