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

Adds a configuration variable "titleLink" which allows to customize the link on the title. #2

Closed
wants to merge 2 commits into from

Conversation

Sbgodin
Copy link

@Sbgodin Sbgodin commented Jul 26, 2014

It's up to you all to accept this patch. The default behavior is to behave as usual, returning home of the Shaarli when you click on the Shaarli title. From now on, you can set a different link.

@e2jk
Copy link

e2jk commented Jul 26, 2014

Can you give a usecase for this feature? I fail to identify one at first, as a general convention is that clicking on a page's logo will bring you to its root page.

@Sbgodin
Copy link
Author

Sbgodin commented Jul 26, 2014

The (unique) use case is on my own Shaarli : http://shaarli.sbgodin.fr/

@e2jk
Copy link

e2jk commented Jul 26, 2014

I wouldn't use this feature myself, but looking at the minimal impact of this pull request, I am not opposed to it.
I'd like others to review this pull request though, to make sure we get into good habits in the Shaarli organization.

@nodiscc
Copy link
Member

nodiscc commented Jul 27, 2014

Just tested it and it works ok. Maybe we should add (default value is ?) under the Title link: field on the config page? Would helps users resetting it to the default if needed.

@Sbgodin
Copy link
Author

Sbgodin commented Jul 27, 2014

I added the tip under the field. Please try and comment.

@e2jk
Copy link

e2jk commented Jul 27, 2014

Before merging this change, I would suggest we release version 0.0.42beta, to contain all the changes made until now by @sebsauvage. That will also mark the start of the Shaarli organization.

See #3.

@Sbgodin
Copy link
Author

Sbgodin commented Jul 27, 2014

I agree!

@Sbgodin
Copy link
Author

Sbgodin commented Jul 27, 2014

In all cases, please don't merge this using the button merge pull request. I'd prefer to use the fast-forward way.

@Sbgodin
Copy link
Author

Sbgodin commented Jul 30, 2014

Done in the dev branch.

@Sbgodin Sbgodin closed this Jul 30, 2014
@Sbgodin Sbgodin deleted the titleLink branch July 30, 2014 09:44
@virtualtam virtualtam added the template HTML rendering label Dec 3, 2015
nodiscc pushed a commit that referenced this pull request Jan 4, 2021
ajabep added a commit to ajabep/Shaarli that referenced this pull request Apr 2, 2021
When we try to access the atom feed and have no bookmarks, it raised the following exception :

```
Call to a member function reorder() on array /webroot/application/bookmark/BookmarkFileService.php:143
#0 /webroot/application/feed/FeedBuilder.php(106): Shaarli\Bookmark\BookmarkFileService->search(Array, 'public', false, false, true)
shaarli#1 /webroot/application/front/controller/visitor/FeedController.php(47): Shaarli\Feed\FeedBuilder->buildData('atom', Array)
shaarli#2 /webroot/application/front/controller/visitor/FeedController.php(20): Shaarli\Front\Controller\Visitor\FeedController->processRequest('atom', Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#3 [internal function]: Shaarli\Front\Controller\Visitor\FeedController->atom(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
shaarli#4 /webroot/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
shaarli#5 /webroot/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
shaarli#6 /webroot/application/front/ShaarliMiddleware.php(55): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#7 [internal function]: Shaarli\Front\ShaarliMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
shaarli#8 /webroot/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Array, Array)
shaarli#9 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
shaarli#10 /webroot/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
shaarli#11 /webroot/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#12 /webroot/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#13 /webroot/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#14 /webroot/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#15 /webroot/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#16 /webroot/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
shaarli#17 /webroot/index.php(177): Slim\App->run(true)
shaarli#18 {main}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants