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

Weblink Module not appearing in front-end; Weblink menu item shows as "unpublished" #4657

Closed
adrianfso opened this issue Oct 13, 2014 · 4 comments

Comments

@adrianfso
Copy link

Steps to reproduce the issue

Create Weblink items in the backend, ensuring they're set to published in any category. Create a new module of "Weblinks" type, ensuring the category and a valid position are selected.

In addition, create a new menu item of the "Weblinks" type (single category display).

Expected result

The module should appear on all pages in the selected position.

In addition, the menu item created should also display the category of Weblinks as published.

Actual result

The position seems to be rendered, but the content is not.

In addition, the menu item does display the Weblinks, but a tag called "unpublished" appears on the page. "Unpublished" appears whether or not the user is signed into the front-end.

System information (as much as possible)

MSSQL, IIS, J!3.3.6

Additional comments

There seems to be an issue with the "publish" calculations. Also, there aren't any files in the "components/weblinks/views/weblink/tmpl/" folder (other than index.html). Is that supposed to be empty?

@adrianfso
Copy link
Author

Got it working. It's because DATE_FORMAT is not recognized in MSSQL. Instead, converting to date format is required.

Here's the proposed fix... but only applies to ms-sql:

\modules\mod_weblinks\helper.php
line 85
'a._, c.published AS c_published,' . $case_when1 . ',' . $case_when2 . ',' . 'convert(char(10), a.created, 120) AS created_date'

_This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4657.*

@nicksavov
Copy link
Contributor

Thanks Adrian! Could you submit a pull request for it? Here's a really easy way how:
http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

@Bakual
Copy link
Contributor

Bakual commented Oct 16, 2014

Please make sure the PR is actually done in the new repo for weblinks here: https://github.com/joomla-extensions/weblinks

@brianteeman
Copy link
Contributor

Closing here as the PR was created against the weblinks repo - thanks joomla-extensions/weblinks#16


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4657.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants