redmine-view-customize-scripts icon indicating copy to clipboard operation
redmine-view-customize-scripts copied to clipboard

How to setup new html view for issue detail page for particular tracker

Open pravindodia opened this issue 1 year ago • 8 comments

I have a distinct project called "portfolio," and I've set up a dedicated tracker named "profile" for it. I'm looking to customize the Detail View of this profile tracker to make it function as a personalized profile. I successfully modified the CSS to achieve the desired look, but I'm unsure about how to provide an HTML template for the page. Any guidance would be appreciated.

pravindodia avatar Jan 26 '24 14:01 pravindodia

Is it correct that you want to apply the CSS you have prepared for a specific tracker?

onozaty avatar Jan 30 '24 13:01 onozaty

Is it correct that you want to apply the CSS you have prepared for a specific tracker?

Yes and No , Yes because I want to apply the css on specific tracker , but at the same time I want to change the HTML View as well for that particular tracker. For example, I want to give standard Issue detail view a different look (UI). I hope I am able to explain the issue, please let me know if you need more info.

pravindodia avatar Jan 30 '24 14:01 pravindodia

First, CSS can be applied to a specific tracker by specifying the tracker ID as the class name in the following manner.

image

However, if this is not possible with CSS alone, it must be written in JavaScript. In that case, Type would be set to JavaScript, and the class of the tracker ID would be checked to see if it exists and applied.

Thanks.

onozaty avatar Jan 31 '24 23:01 onozaty

How about the html I asked for ?

pravindodia avatar Feb 01 '24 09:02 pravindodia

View customize customizes the screen by embedding CSS and JavaScript into the screen. Therefore, it cannot do more than that.

If you want to change the HTML, you have to try your best with JavaScript, but I don't even know if what you expect is something that can be achieved with JavaScript.

Thanks.

onozaty avatar Feb 01 '24 13:02 onozaty

I understand that I need to create JS and CSS but there is an option in type selection of view customize image

I am not sure how to use that and what its for if not the case I am looking for. Please help if possible, Thanks Pravin Dodia

pravindodia avatar Feb 01 '24 16:02 pravindodia

View customize allows you to insert CSS, JavaScript, and HTML. If you choose HTML, HTML is only added, not replaced.

HTML is intended for use when it is difficult to write in CSS or JavaScript. For example, if you want to load external JavaScript, it is easier to just apply the script tag as HTML.

Thanks.

onozaty avatar Feb 02 '24 10:02 onozaty

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Apr 03 '24 01:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Apr 17 '24 01:04 github-actions[bot]