Project

General

Profile

how to add more information

Added by Yukos Vietnam almost 16 years ago

hi all

I can www.redmine.ord can add information in right of screen.

I would like to add some of my company information in there. Could you tell me how to do it?

One more thing, I would like to add more information to footer of page. Could you tell me how to do is?

Thanks in advance.


Replies (11)

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

hi

boom

Could you help me to add my footer in my site www.erpvn.com to Redmine?

Thanks in advance.

RE: how to add more information - Added by Mischa The Evil almost 16 years ago

You can hack the Redmine Core yourself;

HTH... Mischa.

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

hi,

Thanks for your information - the footer-modification is OK for me.

I am trying for sidebar. Could you give me sidebar file of Redmine site? (sorry, because I am not development, so I get it as sample and modify it)

thanks for your support.

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

hi all

up

Can you help me _sitebar.rhtml of redmine.org as sample file?

Thanks in advance.

RE: how to add more information - Added by Mischa The Evil almost 16 years ago

Yukos Vietnam wrote:

Can you help me _sitebar.rhtml of redmine.org as sample file?

Click on the following link: source:trunk/app/views/issues/_sidebar.rhtml

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

Thanks for your information - but this file is empty for sitebar.

I need a file that have sitebar as same as Redmine site. (I am not developer, so I need it to modify for my site)

RE: how to add more information - Added by Mischa The Evil almost 16 years ago

Yukos Vietnam wrote:

Thanks for your information - but this file is empty for sitebar.

I guess you mean that the linked file doesn't contain the code to render the red-bordered view part (the advertisements), as viewed on redmine.org, like you've posted in the screenshot above.

Yukos Vietnam wrote:

I need a file that have sitebar as same as Redmine site. (I am not developer, so I need it to modify for my site)

I now understand that you were in the assumption that I'm having a copy of the exact-same source of Redmine which runs the redmine.org-site. This isn't true. Jean-Philippe, - the project-lead, main-developer and redmine.org-administrator -, has made several changes to the distributed Redmine releases which aren't made public. I am not aware of the/any reason for this... Maybe it wouldn't be of any interest...
Though, fwiw the theme is made public in the forums (though not compatible [yet] with v0.8.0).

Considering the fact that you want to have the "added information" visible on at least two sidebar-views (issues and wiki - your two screenshots -) you would have to modify several actual files of your Redmine-deployment.
You have to add the erb-code, - which gets converted to the actual html which is interpreted by the user's browser -, to every sidebar -partial corresponding to the view-related model.
I haven't looked into it that deep but it seems there are some exceptions though. E.g. the Roadmap-sidebar is coded in the main roadmap view (roadmap.rhtml) instead of a dedicated sidebar-partial using a content_for :sidebar do-block.

Though, this could be also done using the API. There are several hooks (e.g. :view_issues_sidebar_queries_bottom) which could be utilized for this. Though, this would require some (more) knowledge of the Ruby programming language, the Rails framework and the Redmine API itself.
This seems a nice plugin-proposal to me...

HTH,

Mischa.

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

hi Mascha,

thanks for your information.

I am not programer, so I cannot write some of code for Ruby. I though that if I have a sample file as same as Redmind, and then I try to modify as I need. It is better than write down Ruby code.

Can you help me to add a picture in sidebar and link to www.yahoo.com once users click on the picture?

Thanks in advance

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

hi

I need as same the picture:

it added 4 pictures into the sitebar and Joomla logo will link to www.joomla.org, Yahoo logo will link to www.yahoo.com,....

thanks in advance.

RE: how to add more information - Added by Mischa The Evil almost 16 years ago

Yukos Vietnam wrote:

Can you help me to add a picture in sidebar and link to www.yahoo.com once users click on the picture?

...

It added 4 pictures into the sitebar and Joomla logo will link to www.joomla.org, Yahoo logo will link to www.yahoo.com

In this case, you can do this by adding the required html-tags to the wanted sidebar-view partials. For example: to add an image(link) to the issuelist-sidebar paste the following code-snippet to the end of your copy of source:trunk/app/views/issues/_sidebar.rhtml:

<p><a href="http://www.joomla.org/"><img src="http://hobix.com/textile/openwindow1.gif" title="The Image Title" alt="The alternate text" /></a></p>
This will add an image (http://hobix.com/textile/openwindow1.gif) to the end of the issuelist sidebar-partial:
  • the link will point to http://www.joomla.org
  • the link has "The Image Title" set as the title (thus it appears as a tooltip when hovering over the image with your mouse-pointer)
  • the link has "The alternate text" set as the alternative text which is rendered when the image couldn't be loaded

I guess the above example will be sufficient for you to modify it, duplicate it for the wanted images and appy it to your Redmine-deployment. You can use the html-examples provided by the Hobix Textile Reference (under "Embedded Images").

Hope this will suffice your need...

Greetings,

Mischa.

RE: how to add more information - Added by Yukos Vietnam almost 16 years ago

hi,

Thanks for your information.

I do it it Macromedia and get code and paste into the file - it is OK now.

Thanks

    (1-11/11)